0

After running any git command dealing with tagging except for list it prints 70 to the terminal and hangs until I terminate it. It also does it when I specify a commit made. Any ideas how to resolve this?

Command Ran:

git tag -a iteration2-1
Appleblomb
  • 45
  • 1
  • 6

2 Answers2

0

It can depend on the version of Git, and OS (Linux, Windows, Mac) used: see for instance "git operations occasionally hang in Jenkins on Windows".
From your previous question, if you are using Ubuntu 12.04 LTS, try and upgrade git (with a 2.2+) to see if the issue persists.

Note that git tag -a is suppose to create a tag, not to list one.
That means it should be git tag -a tagname acommit.

Community
  • 1
  • 1
VonC
  • 1,262,500
  • 529
  • 4,410
  • 5,250
0

Using an annotated (-a) tag requires a message. Your git editor is likely misconfigured, and git is trying (and failing) to open the editor to type the tag message. Try passing the message on the command line, e.g., $ git tag -a iteration2-1 -m 'this is iteration2'

michael
  • 9,161
  • 2
  • 52
  • 49