美文网首页Git
Git reset local branch & rem

Git reset local branch & rem

作者: JaedenKil | 来源:发表于2018-01-30 15:15 被阅读51次
  • Git rename local branch
# If you're currently on the branch you wish to rename:
git branch -m new_branch_name
# If you're not on the branch you wish to rename:
git branch -m old_branch_name new_branch_name
  • Check the remote repo
git remote -v
  • Git remove the remote branch
git push remote_repo_name --delete old_branch_name
  • Git push branch
git push --set-upstream remote_repo_name new_branch_name

相关文章

网友评论

    本文标题:Git reset local branch & rem

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