码迷,mamicode.com
首页 > 其他好文 > 详细

关于Git-2.6.3-64-bit版本的git push

时间:2015-12-08 01:55:10      阅读:174      评论:0      收藏:0      [点我收藏+]

标签:

最近学习Git,学习到github时,有个命令git push用完之后总报如下问题:

技术分享

经查阅获悉:

Matching——“matching”参数是 Git 1.x 的默认行为,其意是如果你执行 git push 但没有指定分支,它将 push 所有你本地的分支到远程仓库中对应匹配的分支。

Simple——而 Git 2.x 默认的是 simple,我的版本是2.x,意味着执行 git push 没有指定分支时,只有当前分支会被 push 到你使用 git pull 获取的代码。

解决方案:

matching——

git config --global push.default matching

simple——

git config --global push.default simple

via http://www.oschina.net/news/45585/git-2-x-change-push-default-to-simple

 

关于Git-2.6.3-64-bit版本的git push

标签:

原文地址:http://www.cnblogs.com/meredith-mary/p/5028007.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!