在 GitExtensions 中,如何推送标签以便其他人拉取它们

发布于 2024-10-06 03:03:08 字数 384 浏览 0 评论 0原文

我所在的小型开发团队最近“突然”放弃了 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 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(3

那些过往 2024-10-13 03:03:08

默认情况下,git push 不推送标签。您需要使用 --tags 选项,

git push --tags

但请注意,这仅推送标签。

By default git push does not push tags. You need to use the --tags options

git push --tags

Note though that this pushes tags only.

断爱 2024-10-13 03:03:08

您需要将标签(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.

老娘不死你永远是小三 2024-10-13 03:03:08

您可以使用以下方式推送标签:

$ git push <remote name> <tag name>

如果您想推送所有标签,请使用

$ git push --tags

You can push a tag using:

$ git push <remote name> <tag name>

If you want to push all tags, use

$ git push --tags
~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文