简体   繁体   中英

Multiple Git Tags Appear In Software Release on GitHub

I'm currently attempting to migrate a large amount of software releases to GitHub from a legacy system (ClearCase). While doing so, I've created this workflow:

  1. Read label from ClearCase
  2. Generate and apply config spec via label
  3. Robocopy files/directories from ClearCase to pre-cloned/initialized git repository
  4. Stage all files to be added in Git
  5. Create a commit
  6. Tag this commit
  7. Push commit and tags to GitHub

After pushing some tags to GitHub, I navigated to My Repository -> Releases, and looked at one of the most recent tags pushed. To my surprise, not only was the tag that I expected to be present there, but also a number of other previous tags from commits earlier in the master branch (all of the releases are being added to the master branch in order.)

Why is there a plethora of tags being applied to the same release? Am I reading the release wrong? I've included a screenshot of an example of how I'm seeing the multiple tags:

You would see the same in any file part of a commit referenced by multiple tags.

The goal is to list all the tags referencing that commit.
You can then see:

  • when said commit was first tagged
  • its most recent tag.

Consider for instance git/git commit 799767c :

引用该提交的最新和最旧标签

Click on the '...' part and:

很多中间标签

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM