# Rename branch locally
git branch -m old_branch new_branch
# Delete the old branch
git push origin :old_branch
# Push the new branch, set local branch to track the new remote
git push --set-upstream origin new_branch
修改branch name
猜你喜欢
转载自www.cnblogs.com/zhoug2020/p/12613673.html
今日推荐
周排行