Eclipse / EGit:如何构建Git Repo的特定标签 [英] Eclipse/EGit: How to Build a Specific Tag of Git Repo

查看:242
本文介绍了Eclipse / EGit:如何构建Git Repo的特定标签的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想要构建1.8V的Amazon AWS SDK。当我克隆git repo我得到主分支,可能是HEAD。我没有看到任何地方配置标签。

解决方案

您应该看到标签:

  git标签

,建议 robinst 的评论中。 p>


您只想将当前分支更改为标签的提交。

要查看标签,使用标签上的上下文菜单







您还可以重置为特定标签


选择团队 - >重置...项目中的

这将打开一个对话框,您可以在其中选择一个分支或标签。


但是这会改变当前的分支,这可能不是你想要的。


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.

解决方案

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.

这篇关于Eclipse / EGit:如何构建Git Repo的特定标签的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆