修改branch name

# 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

 

posted on 2020-04-01 16:47  莫水千流  阅读(774)  评论(0编辑  收藏  举报