Git修改分支名称
假设分支名称为oldName 想要修改为 newName
1.本地分支重命名(还没有推送到远程)
点击查看代码
git branch -m oldName newName
点击查看代码
git branch -m oldName newName
点击查看代码
git push --delete origin oldName
点击查看代码
git push origin newName
点击查看代码
git branch --set-upstream-to origin/newName
本文来自博客园,作者:寻月隐君,转载请注明原文链接:https://www.cnblogs.com/QiaoPengjun/articles/16078930.html

浙公网安备 33010602011771号