[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
"git push" warning
From: |
Bruno Haible |
Subject: |
"git push" warning |
Date: |
Sun, 21 Jun 2009 19:42:50 +0200 |
User-agent: |
KMail/1.9.9 |
Hi,
After upgrading my installed git version from 1.5.6.3 to 1.6.3.2, while
keeping my existing gnulib checkouts, I get this warning:
$ git push
warning: You did not specify any refspecs to push, and the current remote
warning: has not configured any push refspecs. The default action in this
warning: case is to push all matching refspecs, that is, all branches
warning: that exist both locally and remotely will be updated. This may
warning: not necessarily be what you want to happen.
warning:
warning: You can specify what action you want to take in this case, and
warning: avoid seeing this message again, by configuring 'push.default' to:
warning: 'nothing' : Do not push anything
warning: 'matching' : Push all matching branches (default)
warning: 'tracking' : Push the current branch to whatever it is tracking
warning: 'current' : Push the current branch
According to the Git 1.6.3 release notes [1] the recommended value depends
on what behaviour is less surprising for me, right? So,
$ git config push.default current
OTOH, [2] recommends
$ git config remote.origin.push HEAD
Hmm?
Bruno
[1] http://www.kernel.org/pub/software/scm/git/docs/RelNotes-1.6.3.txt
[2] http://live.gnome.org/Git/Developers
- "git push" warning,
Bruno Haible <=