Skip to contentSkip to conversation

git push --all --tags

DISCUSSION Ryan Jacobs 4 participants 4 messages Jun 15, 2016

lore
Share & tools
lore
#0 lore raw
$ 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.

#1 lore raw
Quoted 6 lines · On Sat, 15 Nov 2014 04:44:19 +0000 (UTC) Ryan Jacobs <[email protected]>…
$ 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.

#2 lore raw
Quoted 11 lines · Konstantin Khomoutov
Quoted 6 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.

#3 lore raw
Quoted 9 lines · Scott Schmit
Quoted 8 lines · Konstantin Khomoutov
Quoted 6 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.

Quoted 6 lines
Quoted 3 lines
  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.

Signature · 3 lines
Andreas Schwab, [email protected]
GPG Key fingerprint = 58CA 54C7 6D53 942B 1756  01D3 44D5 214B 8276 4ED5
"And now for something completely different."