Created
September 22, 2014 08:25
-
-
Save iorionda/50ef3f46df7271d0d5cc to your computer and use it in GitHub Desktop.
git のブランチをリネームする ref: http://qiita.com/iori-o@github/items/ccc352dc5ee58c1ecfbd
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| git branch (-m | -M) [<oldbranch>] <newbranch> | |
| ... | |
| With a -m or -M option, <oldbranch> will be renamed to <newbranch>. If <oldbranch> had a corresponding reflog, it is renamed to match <newbranch>, and a reflog entry | |
| is created to remember the branch renaming. If <newbranch> exists, -M must be used to force the rename to happen. | |
| ... | |
| -m, --move | |
| Move/rename a branch and the corresponding reflog. | |
| -M | |
| Move/rename a branch even if the new branch name already exists. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment