# 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 remotegit push --set-upstream origin new_branch 相关文章: 2022-12-23 2022-12-23 2022-12-23 2021-05-14 2021-07-17 2022-12-23 2022-12-23