Renaming branches remotely in Git

后端 未结 9 1181
执笔经年
执笔经年 2020-11-28 17:07

If there is a repository that I only have git:// access to (and would usually just push+pull), is there a way to rename branches in that repository in the same

9条回答
  •  离开以前
    2020-11-28 17:41

    Sure. Just rename the branch locally, push the new branch, and push a deletion of the old.

    The only real issue is that other users of the repository won't have local tracking branches renamed.

提交回复
热议问题