git tag -l 不显示最新版本
当我去部署 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 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
注意:如““
git fetch --tags
”中所述是否包含“git fetch”?
”,从 git 1.9 开始,一个命令就足以获取新闻提交和标签:(
在 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:(Before 1.9, you had to do
git fetch
+git fetch --tags
)