随身笔记
随身笔记

解决:warning: push.default is unset

warning: push.default is unset; its implicit value has changed in
Git 2.0 from ‘matching’ to ‘simple’. To squelch this message
and maintain the traditional behavior

https://sdeno.com/wp-content/uploads/2019/10/Image_20191011152208.png

大概意思是在Git 1.0 中,git push 默认会把你本地的所有分支都上传到远程, push.default 的值是‘matching’,如是想始终保持以往的习惯就执行

git config --global push.default matching

 

到了git 2.0,git push默认是把当前分支上传到远程而不是所有本地分支push.default 的值是‘simple’,这样比较保守也推荐这样。

git config --global push.default simple

 

https://www.jianshu.com/p/e26175b2e916

随身笔记

解决:warning: push.default is unset
warning: push.default is unset; its implicit value has changed in Git 2.0 from 'matching' to 'simple'. To squelch this message and maintain the traditional behavior …
扫描二维码继续阅读
2019-10-11