美文网首页Git
Git rename branch & reset co

Git rename branch & reset co

作者: JaedenKil | 来源:发表于2018-01-09 17:26 被阅读1112次

If you want to rename a branch while you are at this branch:

git branch -m new_branch_name

If you want to rename a branch while you are not at this branch:

git branch -m old_branch_name new_branch_name

If you make a commit, have not pushed yet:

git commit --amend

相关文章

网友评论

    本文标题:Git rename branch & reset co

    本文链接:https://www.haomeiwen.com/subject/zorgnxtx.html