Git tag - validation problem

If there are several tags in a Git project, how can we check which of the marked tags to remove from all existing ones.

git tag display all tags and entries will be present in .git / refs / tags

say, for example: - today we synchronized the repository from the main repository and received tag 1, and we checked tag 1 and started working on it, after a few weeks we synchronized the content and checked the new tag.

Now, if I want to check the last status, which is the currently tagged tag, how can we do this?

+6
source share
3 answers

git describe tells you the most recent tag your working copy belongs to.

Excerpt from the manual page:

git -describe - Show last tag available from commit

+3
source

Good answers here, but different, and sometimes more friendly, with gitk:

 gitk --all 

For any given commit, it will show you the nearest tags both before and after it, not to mention the graphic layout of the commit graph with the presented tags and branches

+1
source

This gives you a list of the most recent tags in your commit generation, which I think of is what you are asking for:

  git log --format=format:%d --tags 

The most recent tag in your commit generation will be at the top.

You can also use:

  git log --decorate 

which gives you a regular git log with tags added to commits.

0
source

Source: https://habr.com/ru/post/894711/


All Articles