git config –global push.default

参考教程http://blog.haohtml.com/archives/10093刚安装的git最新版本,发现有些命令发生了一些变化.

[web@bogon www]$ git push
warning: push.default is unset; its implicit value is changing in
Git 2.0 from ‘matching’ to ‘simple’. To squelch this message
and maintain the current behavior after the default changes, use:

git config –global push.default matching

To squelch this message and adopt the new behavior now, use:

git config –global push.default simple

See ‘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)

Counting objects: 4, done.
Compressing objects: 100% (2/2), done.
Writing objects: 100% (3/3), 263 bytes, done.
Total 3 (delta 1), reused 0 (delta 0)

再次执行上面的命令的时候,可能会提示以下信息:

fatal: The current branch master has no upstream branch.
To push the current branch and set the remote as upstream, use

git push –set-upstream origin master

这个时候只需要执行一下命令

git push –set-upstream origin master

即可

20 thoughts on “git config –global push.default

  1. Pingback: pax vaporizer

  2. Pingback: trang m88

  3. Pingback: 바카라

  4. Pingback: 놀이터추천

  5. Pingback: qiuqiu99

  6. Pingback: 토토추천

  7. Pingback: fake tag heuer formula 1 ceramic

  8. Pingback: alcohol

  9. Pingback: 토토사이트

  10. Pingback: auto generated contents

  11. Pingback: viagra sales

  12. Pingback: corey zieman reviews

  13. Pingback: uniccshop.bazar

  14. Pingback: knockoff second hand patek philippe watches

  15. Pingback: level 3

  16. Pingback: danh de online

  17. Pingback: https://www.jueriy.com/

  18. Pingback: bitcoinevolutiononline.com

  19. Pingback: bitcoin loophole review

  20. Pingback: http://cialistodo.com/

Comments are closed.