# git push --all --tags

4 messages from 2014-11-15 to 2014-11-15. Participants: Ryan Jacobs, Konstantin Khomoutov, Scott Schmit, Andreas Schwab.
Thread: https://gitlist.dev/t/37973

## Ryan Jacobs, 2014-11-15 04:44

Subject: git push --all --tags
Message-ID: <loom.20141115T054352-272@post.gmane.org>
URL: https://gitlist.dev/e/loom.20141115T054352-272%40post.gmane.org

```
$ 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, 2014-11-15 15:58

Subject: Re: git push --all --tags
Message-ID: <20141115185836.103fc4f493ad55725eab38f0@domain007.com>
URL: https://gitlist.dev/e/20141115185836.103fc4f493ad55725eab38f0%40domain007.com
In-Reply-To: <loom.20141115T054352-272@post.gmane.org>

```
On Sat, 15 Nov 2014 04:44:19 +0000 (UTC)
Ryan Jacobs <ryan.mjacobs@gmail.com> 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.

```

## Scott Schmit, 2014-11-15 17:56

Subject: Re: git push --all --tags
Message-ID: <20141115175655.GA27247@odin.ulthar.us>
URL: https://gitlist.dev/e/20141115175655.GA27247%40odin.ulthar.us
In-Reply-To: <20141115185836.103fc4f493ad55725eab38f0@domain007.com>

```
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.

```

## Andreas Schwab, 2014-11-15 18:33

Subject: Re: git push --all --tags
Message-ID: <87389kb9fp.fsf@igel.home>
URL: https://gitlist.dev/e/87389kb9fp.fsf%40igel.home
In-Reply-To: <20141115175655.GA27247@odin.ulthar.us>

```
Scott Schmit <i.grok@comcast.net> writes:

> 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."

```
