Skip to content

Instantly share code, notes, and snippets.

@slavi
Created October 26, 2015 19:38
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
Star You must be signed in to star a gist
Save slavi/98944a1a35fcb406e0dd to your computer and use it in GitHub Desktop.
git push --tags pushing a bad tag
$ GIT_TRACE=1 git push origin 'refs/tags/*'
19:31:17.791269 git.c:346 trace: built-in: git 'push' 'origin' 'refs/tags/*'
19:31:17.793654 run-command.c:351 trace: run_command: 'ssh' '-p' '7999' 'git@some-git-repo.com' 'git-receive-pack '\''slavirepo.git'\'''
To ssh://git@some-git-repo.com:7999/slavirepo.git
! [rejected] 1.21.0 -> 1.21.0 (already exists)
error: failed to push some refs to 'ssh://git@some-git-repo.com:7999/slavirepo.git'
hint: Updates were rejected because the tag already exists in the remote.
user@(research)[cn45] /scratch/user/user/tmp1jFRX5/tmpZp5Xbc/5/root
$ ls -lah .git/refs/tags/
total 4.0K
drwxr-xr-x 2 user is 3 Oct 26 19:00 .
drwxr-xr-x 5 user is 5 Oct 26 18:55 ..
-rw-r--r-- 1 user is 41 Oct 26 19:00 1.22.0
user@(research)[cn45] /scratch/user/user/tmp1jFRX5/tmpZp5Xbc/5/root
$
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment