无法使用'no-ff'运行命令(“致命:'-no-ff'似乎不是git存储库”)

时间:2019-04-04 09:16:51

标签: git

当推或拉时,我似乎无法使用-no-ff选项执行命令,而没有,则很好。以前没事,所以不知道为什么这些错误开始了

git pull -no-ff origin ticket_1076

给出错误

fatal: '-no-ff' does not appear to be a git repository

Warning: Your console font probably doesn't support Unicode. If you     experience strange characters in the output, consider switching to a     TrueType font such as Consolas!
fatal: Could not read from remote repository.

Please make sure you have the correct access rights
and the repository exists.
git pull origin ticket_1076

工作正常。

我不确定要尝试的方法-我已经阅读了一些其他主题,涉及“似乎不是git存储库”,但似乎本地和远程存储库已正确同步。我在Windows 7上。

1 个答案:

答案 0 :(得分:6)

您需要传递一个双-,因此:--no-ff才能正常工作。

否则,该选项将不会被识别并用作第一个参数<repository>,并且不会被识别为存储库。