m.level
m.level

Reputation: 45

GitHub Desktop: Git could not be found at the expected path

I am new to GitHub and I am having trouble creating a new repo:

before-

before

After:

Then I get this error msg:

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.

What do I do?
Do I need to place my files in a certain folder?

Upvotes: 3

Views: 5864

Answers (3)

VonC
VonC

Reputation: 1325137

Try instead to:

  • create your repo on github.com (not through GitHub Desktop)
  • use git clone https://github.com//.git to clone it in /path/to/project1

    git clone https://github.com/<user>/<repo>.git /path/to/project1
    
  • import that path (drag and drop) into GitHub Desktop

As Kamaltejveerapaneni commented in issue 1638 (and confirmed below in another issue):

Its working fine when I reinstalled it

Upvotes: -1

H.C.Chen
H.C.Chen

Reputation: 452

This question has been answered here : https://github.com/desktop/desktop/issues/4165 and it works to me. I repeat the process below:

  1. restart your computer
  2. uninstall GitHub Desktop
  3. delete %LOCALAPPDATA%\GitHubDesktop\ and %APPDATA%\GitHub Desktop
  4. install GitHub Desktop again

Upvotes: 6

dzy
dzy

Reputation: 1

Maybe you should change your GitHub Desktop's config:

Git could not be found at the expected path: '/Users/user/Downloads/GitHub Desktop.app/Contents/Resources/app/git/bin/git'.

Upvotes: 0

Related Questions