Warning: file_get_contents(/data/phpspider/zhask/data//catemap/9/git/20.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
使用Graphics Magick convert命令时发生Git致命错误_Git_Command Line_Graphicsmagick - Fatal编程技术网

使用Graphics Magick convert命令时发生Git致命错误

使用Graphics Magick convert命令时发生Git致命错误,git,command-line,graphicsmagick,Git,Command Line,Graphicsmagick,当我尝试使用Graphics Magick命令时(一些简单的东西,只是为了测试程序),我什么都做不了,因为它总是用git错误回复 gm convert fatal: Not a git repository (or any of the parent directories): .git 我没有采取任何特别的行动,因为我发现了我的问题,所以一切都不起作用。 我安装了oh my zsh,因为我非常喜欢定制和自动完成功能,但我通常不使用Git,所以我不熟悉它的功能。哦,我的zsh附带了一个git插

当我尝试使用Graphics Magick命令时(一些简单的东西,只是为了测试程序),我什么都做不了,因为它总是用git错误回复

gm convert
fatal: Not a git repository (or any of the parent directories): .git
我没有采取任何特别的行动,因为我发现了我的问题,所以一切都不起作用。 我安装了oh my zsh,因为我非常喜欢定制和自动完成功能,但我通常不使用Git,所以我不熟悉它的功能。哦,我的zsh附带了一个git插件,其中预构建了一些别名,这就是我的问题


谢谢你的帮助,玛斯

您可能已经安装了oh my zsh。 在oh my zsh中,有“gm”(git合并别名)

所以,您必须修改文件中的别名

~/.oh my zsh/plugins/git/git.plugin.zsh


查找
gm
关键字并修改为不同的名称。

别名gm是否打印任何有趣的内容?
gm='git merge'
我想如果我从别名中删除它,它会正常工作,不是吗?