git tag -l 不显示最新版本

发布于 2025-01-08 04:08:24 字数 318 浏览 4 评论 0原文

当我去部署 django 安装时,出现以下错误:

local: git tag -l release/beta* | tail -1
run: git checkout release/beta-20120221-150831 
out: error: pathspec 'release/beta-20120221-150831' did not match any file(s) known to git.

标签存在于我的本地机器上,但它不存在于我的临时服务器上。为什么?它发送最新版本“release/beta-20120221-150831”。

When I go to deploy my django installation, I get the following error:

local: git tag -l release/beta* | tail -1
run: git checkout release/beta-20120221-150831 
out: error: pathspec 'release/beta-20120221-150831' did not match any file(s) known to git.

The tag exists on my local box, but it doesn't on my staging server. Why? It sends the most recent release "release/beta-20120221-150831".

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

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

发布评论

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

评论(1

夜深人未静 2025-01-15 04:08:24

注意:如“git fetch --tags”中所述是否包含“git fetch”?”,从 git 1.9 开始,一个命令就足以获取新闻提交和标签:(

git fetch --tags origin

在 1.9 之前,你必须执行 git fetch + git获取--标签)

Note: as explained in "Does “git fetch --tags” include “git fetch”?", starting git 1.9, one command will be enough to fetch both news commits and tags:

git fetch --tags origin

(Before 1.9, you had to do git fetch + git fetch --tags)

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