happy-git-with-r icon indicating copy to clipboard operation
happy-git-with-r copied to clipboard

warning: push.default is unset

Open samhinshaw opened this issue 8 years ago • 1 comments

Older versions of git may throw warning regarding push behavior:

$ 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
  • Relevant stackoverflow

    "...it only affects what happens when you don't specify which branches you want to push."

  • Relevant git docs (see push.default)

  • Git version of student who experienced error: git version 1.9.5 (Apple Git-50.3), on Mac OS X 10.9.5

  • Relevant to section 10.3 of instructions.

  • ~~Issue was resolved by installing XCode, as per 7.3 Option 1~~

    • Edit: Unclear if XCode installation was responsible for the issue. Student squelched warning message with git config --global push.default simple

samhinshaw avatar Sep 12 '16 16:09 samhinshaw

My impression is that she used XCode as we instructed. But due to her old OS, she gets a rather old version of git. And that version throws the above warning upon first (or all? or ??) push.

jennybc avatar Sep 12 '16 21:09 jennybc