问题
I want to build v 1.8.4 of the Amazon AWS SDK. When I clone the git repo I get the master branch, probably the HEAD. I do not see any place to configure the tag.
回答1:
You should see the tags with:
git tag
(like the tags of aws/aws-sdk-java)
You see the tags in the repository view:
From there, you should be able to checkout any tag you want in order for your working tree to reflect that tag:
git checkout 1.8.4
For keeping the branches as is, but accessing a particular/commit or tag, one can use the Egit checkout, as suggested in the comments by robinst.
you just wanted to change the "current branch" to the commit of the tag.
To check out a tag, use the context menu on the tag
You also can reset to a specific tag:
Select
Team -> Reset...on a project.
This opens a dialog where you can select a branch or a tag.
But that would change the current branch, which might not be what you want.
来源:https://stackoverflow.com/questions/24706718/eclipse-egit-how-to-build-a-specific-tag-of-git-repo