git modify remote branch name

  1. Modify the local branch name
git branch -m oldName newName 
  1. delete remote old branch
git push --delete origin oldName
  1. Upload a new local branch
git push origin newName  
  1. Associate the remote branch with the local branch
git branch --set-upstream-to origin newName  

Guess you like

Origin blog.csdn.net/qq_41536505/article/details/118389292