您可以使用git branch -m命令。git branch -m master tmpbranch git branch -m branchone master git branch -m tmpbranch branchone