Where does Git store tags?
While wnoise is correct when he stated that Git also stores tags in .git/packed-refs
following a git gc
operation, between "pack" points (meaning, between git gc
operations), Git creates unpacked commit objects and unpacked tags:
derek@derek-OptiPlex-960:~/Projects/test$ git tag123derek@derek-OptiPlex-960:~/Projects/test$ cat .git/packed-refs # pack-refs with: peeled 55a87ab06897aca29285e58beb4e0de15af409fa refs/heads/master89a6b171ee6d56bc3ce5a4cbd92c6a379594d974 refs/tags/155a87ab06897aca29285e58beb4e0de15af409fa refs/tags/2derek@derek-OptiPlex-960:~/Projects/test$ ls .git/refs/tags3derek@derek-OptiPlex-960:~/Projects/test$