错误提示:warning: push.default is unset

来源:互联网 发布:wps流程图软件visio 编辑:程序博客网 时间:2024/06/06 03:38

git push 时报错

# git pushwarning: push.default is unset; its implicit value is changing inGit 2.0 from 'matching' to 'simple'. To squelch this messageand maintain the current behavior after the default changes, use:  git config --global push.default matchingTo squelch this message and adopt the new behavior now, use:  git config --global push.default simpleSee 'git help config' and search for 'push.default' for further information.(the 'simple' mode was introduced in Git 1.7.11. Use the similar mode'current' instead of 'simple' if you sometimes use older versions of Git)

错误原因

push.default 没有配置导致告警

解决方法:

 //设置默认行为为simple。 Git2.0以后 git config --global push.default simple   //设置默认行为为matching。Git2.0以前 git config --global push.default matching  
阅读全文
0 0