ユーザ用ツール

サイト用ツール


サイドバー

git:コマンド

以前のリビジョンの文書です


よく使うコマンド

checkout

> git checkout [ブランチ名]

> git checkout master
Switched to branch 'master'
Your branch is up to date with 'origin/master'.

変更を破棄する

git checkout .

orignのURLを確認する

>git remote -v
origin  https://github.com/nekotype/native-background-timer.git (fetch)
origin  https://github.com/nekotype/native-background-timer.git (push)

>git config --get remote.origin.url
https://github.com/nekotype/native-background-timer.git

orignに手動でpushする

git push -u origin master

特定のコミットに戻す

git logでコミットidを調べて
git reset --hard [コミットid]
git/コマンド.1553991256.txt.gz · 最終更新: 2019/03/31 09:14 by ips