How do I know if a Git tag has been moved?

I used git tag --forceto move the tag, and now I want to know where the tag was before moving it.

I did not find anything on the manual pages and on the Pro Git & sect; website 2.6 Git Basics - Labeling .

No one seems to have posted this question before.

+4
source share
1 answer

The only way to know for sure is to save the tabs (tags?) In the tag before.

As noted in the comments, there are two types of tags: annotated and easy.

T, git refs/tags/T. . git " " ( , , blob), , " " - . , .

git logs ( .git/logs), , , ref. .git/logs, HEAD refs. refs heads, refs/heads - . refs/heads/master reflog master, .

.git/logs/refs/tags, , , reflog . , . ; , : - , .

, , , , .git/logs/tags, , . , reflog. , , .

" , ": SHA-1 . , reflog, , , , , , . , , SHA-1 , .


, , , git fsck. , , . "Dangling blobs" , , git add -, git add .
"" , reflog. " ":

dangling tag 20e14672ee2253d38c1001179d8f17688d47059c

SHA-1 ; (, ), , git gc -ed .

+2

All Articles