Eclipse/EGit: How to Build a Specific Tag of Git Repo

做~自己de王妃 提交于 2019-12-10 11:36:45

问题


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

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!