赞
踩
git branch -a
#查看所有分支
git branch -r
#查看远程分支
git branch -vv
#查看本地分支所关联的远程分支
git branch -m old_branch new_branch
# Rename branch locally
git push origin :old_branch
# Delete the old branch
git push --set-upstream origin new_branch
或者git push -u origin new_branch
# Push the new branch, set local branch to track the new remote
注意:把origin改为自己的名称
Copyright © 2003-2013 www.wpsshop.cn 版权所有,并保留所有权利。