0

设置git push仅推送当前分支

Posted in git at 八月 19th, 2013 / No Comments »

设置当前仓库:

git config push.default current

设置全局:

git config –global push.default current

其它值:

nothing – do not push anything.

matching – push all matching branches. All branches having the same name in both ends are considered to be matching. This is the default.

upstream – push the current branch to its upstream branch.

tracking – deprecated synonym for upstream.

current – push the current branch to a branch of the same name.

http://stackoverflow.com/questions/11872984/what-is-the-difference-between-git-push-default-current-and-push-default-upstrea

Published in git

No Responses to “设置git push仅推送当前分支”

Leave a Reply

请输入算式结果(看不清请点击图片)
(必须)