在 GitExtensions 中,如何推送标签以便其他人拉取它们
我所在的小型开发团队最近“突然”放弃了 Visual SourceSafe,并开始使用 Git(Windows、Visual Studio 2008 等非常普通的东西)。我们正在使用 GitExtensions,到目前为止一切都很好,我们真的很喜欢它!
我们在其中一台文件服务器上有一个所谓的“共享存储库”,我们可以在其中推送和拉取以共享代码。
现在,作为主要负责将代码部署到生产中的人,我通常会将所有合并拉到我自己的存储库中并进行处理。然后我将代码部署到我们的测试环境并重复直到准备就绪。一旦准备好进入我们的生产服务器,我就会在我的存储库中标记最终合并/提交,部署代码,然后将其推回共享存储库。
但当其他人之后拉动时,他们看不到我的标签。
所以,我在这里:有什么技巧?任何帮助将不胜感激。
The small devteam I'm on just recently went "cold turkey" on Visual SourceSafe and started using Git (Windows, Visual Studio 2008, etc. pretty vanilla stuff). We're using GitExtensions and so far so good, we're really loving it!
We have a what we call a "shared repo" on one of our file servers where we push to and pull from in order to share code.
Now as the person primarily responsible for deploying code into production, I typically pull and deal with all the merging into my own repo. Then I deploy code to our Test environment and repeat until ready. Once it's ready to go to our production server, I label the final merge/commit in my repo, deploy the code, then push it back to the shared repo.
But when the others pull after that, they don't see my labels.
So, here I am: what's the trick? Any help would be greatly appreciated.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(3)
默认情况下,
git push
不推送标签。您需要使用--tags
选项,但请注意,这仅推送标签。
By default
git push
does not push tags. You need to use the--tags
optionsNote though that this pushes tags only.
您需要将标签(tag)推送到远程存储库,其他人才能收到它们。
在 GitExtensions 的推送对话框中,选择“标签”选项卡。然后选择要推送的标签或选择“推送所有标签”。点击按钮,标签将被推送到远程存储库。
当其他人拉取时,他们将收到远程存储库中的所有标签。
You need to push the label (tag) to the remote repository before others will be able to recieve them.
In GitExtensions, in the push dialog, select the "tags" tab. Then select the tag you want to push or select "push all tags". Hit the push button and the tags will be pushed to the remote repository.
When others pull, they will recieve all tags that are in the remote repository.
您可以使用以下方式推送标签:
如果您想推送所有标签,请使用
You can push a tag using:
If you want to push all tags, use