Warning: file_get_contents(/data/phpspider/zhask/data//catemap/9/git/22.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Git流失败,返回“0”;致命:没有标记消息?/标记失败。请再次运行“完成”以重试;_Git_Git Flow - Fatal编程技术网

Git流失败,返回“0”;致命:没有标记消息?/标记失败。请再次运行“完成”以重试;

Git流失败,返回“0”;致命:没有标记消息?/标记失败。请再次运行“完成”以重试;,git,git-flow,Git,Git Flow,我正在用它来管理一个项目。我在发布git flow release时收到以下消息 完成foo: fatal: no tag message? Tagging failed. Please run finish again to retry. 下面是使用全新git复制的步骤序列 存储库和单个文件: touch test.txt git init git add . git commit -m "Initial commit" git flow init [defaults acce

我正在用它来管理一个项目。我在发布git flow release时收到以下消息 完成foo:

fatal: no tag message? 
Tagging failed. Please run finish again to retry. 
下面是使用全新git复制的步骤序列 存储库和单个文件:

touch test.txt 
git init 
git add . 
git commit -m "Initial commit" 
git flow init 
[defaults accepted] 
git flow release start 1.0 
echo "Line 1" >> test.txt 
git add . 
git commit -am "Line added" 
git flow release finish '1.0' 
此时,弹出上面的错误消息,调用Vim以 添加一个标记。当我添加标签并保存时,我最终会进入主界面 分支,版本/1.0分支仍然存在。知道是什么吗 出问题了?Git流版本是0.4.1


谢谢。

我也有同样的问题,是core.editor设置给我带来了问题。结果证明我已经建立了Gedit(不知道如何)。在完成发布/修补程序分支之前,请尝试类似于git config--global core.editor“vim”或编辑.gitconfig中的编辑器行。

git tag -a v0.1.2 -m "release_added"
请不要在邮件中添加空格 然后完成发布/修补程序 然后,您将获得一个窗口来添加消息

如果您添加了标记,并且消息中存在问题,请使用更改消息

git tag <tag name> <tag name> -f -m "<new message>"
git标记-f-m“”

请不要在消息中添加空格

我通过在命令末尾添加-n解决了这个问题,如下所示

git flow hotfix finish 'hotfix name' -n

-n表示没有标签。

在Ubuntu Natty上使用git flow 0.4.2-pre版无法复制。您使用的是什么操作系统?我在使用MSYSGIT.FYI的Windows 7上遇到了这个问题,如果您想让gedit作为核心编辑器,它必须从
-s
-w
参数开始。这对我来说是成功的,谢谢
-n
需要在热修复程序名称之前,而不是之后。