[Git] How to rename your remote branch
2017-04-18 19:06
330 查看
Rename your local
Remember this will add the new branch when you
Add
If you just want to remove your remote
foobranch with
bar:
git branch -m foo bar
Remember this will add the new branch when you
push, but it won’t delete the old
fooremote branch.
Add
-f --mirrorto rename the branch on the remote:
git push origin -f --mirror
If you just want to remove your remote
foobranch, just use:
git push origin :foo
相关文章推荐
- How to delete the remote branch in git
- 如何重新命名Git分支(how to rename a git branch locally and remotely?)
- how to rename a git branch
- How to Push a New Local Branch to a Remote Git Repository
- Git: How to revert a merge commit that's already pushed to remote branch?
- Git- [!remote rejected]:refusing to delete the current branch
- How to push master to QA branch in GIT
- Git: How to remove ignored files from your repository's directory
- 布置Git环境Your working copy is out of date. Try pulling from the remote to get the latest change
- Git:your branch is up-to-date
- 【git】Your branch is up-to-date 和 Everything up-to-date
- Git: How To Revert A Branch Merge
- how to clone all remote branches in git
- How to tell git format-patch to contain function name in your patch
- Sharing with Git,Learn how to use Git to share your Xcode projects
- Xcode4 布置Git环境Your working copy is out of date. Try pulling from the remote to get the latest change
- How to provide username and password when run "git clone git@remote.git"? - Stack Overflow
- Linux:How To Use Screen Command To Manage Your Remote Session
- [Git]setting an existed local branch to track a remote branch
- Git HowTo: revert a commit already pushed to a remote repository