赞
踩
远程引用是对远程仓库的引用(指针),包括分支、标签等等。
git ls-remote 远程仓库名
作为远程分支的一个本地拷贝,作为本地与远程的中间媒介。
对于本地用户,远程跟踪分支只读。
若不设置此跟踪分支,则无法直接push
git branch --set-upstream-to=仓储名/分支名
--set-upstream-to 可以简化为 -u
git branch --u 仓储名/分支名
git branch --unset-upstream
git push
git branch -vv
可以看到test分支的跟踪分支为 Chaoch/test
git branch -v
git remote -v
注意先从要删除的分支中切出
git push 远程仓储名 --delete 目标分支名
Copyright © 2003-2013 www.wpsshop.cn 版权所有,并保留所有权利。