happy-git-with-r
happy-git-with-r copied to clipboard
warning: push.default is unset
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
-
"...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
- Edit: Unclear if XCode installation was responsible for the issue. Student squelched warning message with
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.