From: Junio C Hamano Date: Thu, 12 Jan 2006 18:53:42 GMT Subject: Re: [RFD] what should "git push remote.host:path" do? Message-ID: <7vbqyhp9ah.fsf@assigned-by-dhcp.cox.net> In-Reply-To: Linus Torvalds writes: > Well, especially if you want to use "git push" to basically back up your > own repo, you do want the "--all" flag. Otherwise you will then forget to > add a branch name to every remotes file whenyou create a new branch. Sorry, I was unclear in my original message, but I meant to require at least one refspec to be given to the command. Ways to give refspec to the command are: (1) give one or more from the command line (2) give --all from the command line (3) give none from the command line, but in this case you need at least one "Push:" the "remotes" file you use. We already have --all, but your "git push --tags $remote" makes sense. For backups, "only matching things" is not good enough, and we need --all.