Will too many tags cause any issues in Git?

(Annotated) tags won't make Git sluggish, only harder to use in that you will have an harder time to find relevant tags amongst all the intermediate ones.

Worst case, it can make your web interface (like GitHub) sluggish if it has to display thousands of tags.

Maybe all those tags don't need to be pushed, in which case you could consider making intermediate local "Lightweight" tags.


Using Git 2.8.1 on Windows, I have experienced minor slowness from certain commands when there are lots of tags (15000 or so), including:

  • git log (with --decorate)

  • git status

  • Viewing history in Visual Studio.

  • Using the command prompt when head is detached (since Git Bash pretty-prints the current revision next to the current directory).

These commands all examine tags to decorate revisions shown. Each of these commands takes about 1-2 seconds longer than without the tags.

Update: Running git gc (without --prune as I had been) greatly sped up Git. The real culprit may have been frequent rebasing.

Tags:

Git