threads / discuss / 37973

git push --all --tags

Subject: git push --all --tags

## tl;dr

4 messages between Nov 15, 2014 and Nov 15, 2014.

replies: 3people: 4as markdown or json

Ryan Jacobs· Nov 15, 2014, 04:44 UTC · lore

$ git push --all --tags error: --all and --tags are incompatible

Why are these flags incompatible? Just wondering 'cause I think that it would be a good feature to be able to push all of your branches and all of your tags to the server in one quick and simple command.

Konstantin Khomoutov· Nov 15, 2014, 15:58 UTC · re: Ryan Jacobs · lore

Re: git push --all --tags

On Sat, 15 Nov 2014 04:44:19 +0000 (UTC) Ryan Jacobs <ryan.mjacobs@gmail.com> wrote:

Show 6 quoted lines
> $ git push --all --tags
> error: --all and --tags are incompatible
> 
> Why are these flags incompatible? Just wondering 'cause I think that
> it would be a good feature to be able to push all of your branches
> and all of your tags to the server in one quick and simple command.
  git push --mirror
should do this.
Scott Schmit· Nov 15, 2014, 17:56 UTC · re: Konstantin Khomoutov · lore

Re: git push --all --tags

On Sat, Nov 15, 2014 at 06:58:36PM +0300, Konstantin Khomoutov wrote:
Show 11 quoted lines
> On Sat, 15 Nov 2014 04:44:19 +0000 (UTC) Ryan Jacobs wrote:
> > $ git push --all --tags
> > error: --all and --tags are incompatible
> > 
> > Why are these flags incompatible? Just wondering 'cause I think that
> > it would be a good feature to be able to push all of your branches
> > and all of your tags to the server in one quick and simple command.
> 
>   git push --mirror
> 
> should do this.

Except that mirror also deletes anything removed locally. --all and --tags don't.

Andreas Schwab· Nov 15, 2014, 18:33 UTC · re: Scott Schmit · lore

Re: git push --all --tags

Scott Schmit <i.grok@comcast.net> writes:
Show 15 quoted lines
> On Sat, Nov 15, 2014 at 06:58:36PM +0300, Konstantin Khomoutov wrote:
>> On Sat, 15 Nov 2014 04:44:19 +0000 (UTC) Ryan Jacobs wrote:
>> > $ git push --all --tags
>> > error: --all and --tags are incompatible
>> > 
>> > Why are these flags incompatible? Just wondering 'cause I think that
>> > it would be a good feature to be able to push all of your branches
>> > and all of your tags to the server in one quick and simple command.
>> 
>>   git push --mirror
>> 
>> should do this.
>
> Except that mirror also deletes anything removed locally.  --all and
> --tags don't.

And --mirror pushes really all refs, including remote-tracking ones, mirroring all ref namespaces as is.

Andreas.
-- 
Andreas Schwab, schwab@linux-m68k.org
GPG Key fingerprint = 58CA 54C7 6D53 942B 1756  01D3 44D5 214B 8276 4ED5
"And now for something completely different."

← back to recent threads