我是GitHub的新手,我在创建新的仓库时遇到了麻烦:
之前-
后:
然后我得到这个错误消息:
Git could not be found at the expected path:
'/Users/user/Downloads/GitHub Desktop.app/Contents/Resources/app/git/bin/git'.
This might be a problem with how the application is packaged,
so confirm this folder hasn't been removed when packaging.
我该怎么办? 我是否需要将文件放在某个文件夹中?
请尝试改为:
/path/to/project1
中克隆它
git clone https://github.com/<user>/<repo>.git /path/to/project1
正如Kamaltejveerapaneni在issue 1638评论(并在下面的另一期证实):
我重新安装它时工作正常
这个问题在这里得到了回答:https://github.com/desktop/desktop/issues/4165,它对我有用。我重复以下过程:
也许你应该改变你的GitHub桌面配置:
在预期的路径找不到Git:'/ Users / user / Downloads / GitHub Desktop.app/Contents/Resources/app/git/bin/git'。