Re: [RFD] what should "git push remote.host:path" do?
- From
Junio C Hamano <junkio@cox.net>
- Date
- Jan 12, 2006, 18:53 UTC
- Message-ID
- <7vbqyhp9ah.fsf@assigned-by-dhcp.cox.net>
- In-Reply-To
- <Pine.LNX.4.64.0601121006040.3535@g5.osdl.org>
Linus Torvalds <torvalds@osdl.org> 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.