[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


After upgrading my installed git version from to, 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: 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



[1] http://www.kernel.org/pub/software/scm/git/docs/RelNotes-1.6.3.txt
[2] http://live.gnome.org/Git/Developers

reply via email to

[Prev in Thread] Current Thread [Next in Thread]