シンタックス | 説明 |
---|---|
$ git branch |
ブランチの一覧表示 |
$ git branch [branch name] |
ブランチを作成 |
$ git branch -m [before branch name] [after branch name] |
ブランチ名を変更 |
git branch -d [branch name] |
ブランチの削除 |
$ git checkout [branch name] |
ブランチの切り替え |
$ git checkout [branch name A] && $ git merge [branch name B] |
ブランチAにBをマージする |
$ git commit --amend |
一つ前のコミットををやり直す |
$ git rebase --continue |
--continue はマージコンフリクト解決後にリベースをやり直す |
$ git log --grep [string] |
探したい文字列を含むコミットを探す |
$ git reset --hard [hash] |
特定のコミットまで戻る |
Last active
January 12, 2017 08:39
-
-
Save mojagehub/37e253570195d83e3cbad8b46787c32e to your computer and use it in GitHub Desktop.
git branch Management commands
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment