From: Wincent Colaiuta Date: Thu, 27 Sep 2007 13:30:08 GMT Subject: Re: git push (mis ?)behavior Message-ID: <0CAD1C47-A396-46AA-9DC0-96BBD41EE4E4@wincent.com> In-Reply-To: <20070927130447.GH10289@artemis.corp> El 27/9/2007, a las 15:04, Pierre Habouzit escribió: > There is a behavior of git-push that is the most annoying thing > while > working with a central-repository: `git push` without any arguments > insists on pushing every local refspec that match one in origin. I kind of agree. Without reading the git-push man page I would intuitively expect "git push" with no arguments to push only the branch I currently have checked out, and "git push --all" to push all. > I'm not sure what we can do about it, but I'm pretty sure it bites a > lot of people out there. For now I use this alias in my .gitconfig: > > p=!git-push origin `git-symbolic-ref HEAD` Ah, nice alias! Thanks for sharing it. Cheers, Wincent