GitHub Desktop:在预期路径中找不到 Git

m.l*_*vel 3 git github

我是 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.
Run Code Online (Sandbox Code Playgroud)

我该怎么办?
我需要将文件放在某个文件夹中吗?

H.C*_*hen 6

这个问题已在这里得到解答: https: //github.com/desktop/desktop/issues/4165 ,它对我有用。我重复下面的过程:

  1. 重启你的电脑
  2. 卸载 GitHub 桌面
  3. 删除 %LOCALAPPDATA%\GitHubDesktop\ 和 %APPDATA%\GitHub Desktop
  4. 再次安装 GitHub Desktop