我在GitHub bash中尝试了以下几行。我需要在Git bash中设置PyCharm的路径,以便从Bash打开PyCharm。
$ git config core.editor "PyCharm"
fatal: not in a git directory
$ git config core.editor "PyCharm --wait"
fatal: not in a git directory
发布于 2021-11-03 23:40:02
git config --global core.editor "'<path to PyCharm.exe>' --wait"
发布于 2021-03-24 11:31:13
您正在运行的命令正在尝试为特定的存储库设置编辑器,因为您不在其中,所以它会相应地告诉您。要全局设置编辑器,请在命令中包含--global
标志,如git config --global core.editor "PyCharm"
发布于 2021-03-25 02:07:02
这应该是可行的。
git init
启动。这个想法是在.git出现的地方运行这些命令(在你的仓库中,这个仓库是在你运行git init之后创建的)。
https://stackoverflow.com/questions/66774324
复制相似问题