Thread (1 message) 1 message, 1 author, 2016-06-15

Re: [RFD] what should "git push remote.host:path" do?

From: Junio C Hamano <hidden>
Date: 2016-06-15 22:42:16

Linus Torvalds [off-list ref] 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.
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help