Skip to content

Instantly share code, notes, and snippets.

@iorionda
Created September 22, 2014 08:25
Show Gist options
  • Select an option

  • Save iorionda/50ef3f46df7271d0d5cc to your computer and use it in GitHub Desktop.

Select an option

Save iorionda/50ef3f46df7271d0d5cc to your computer and use it in GitHub Desktop.
git のブランチをリネームする ref: http://qiita.com/iori-o@github/items/ccc352dc5ee58c1ecfbd
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