Skip to main content Link Menu Expand (external link) Document Search Copy Copied

Debugging git issues

  • fatal: not a git repository

This means you’re using git commands in a directory that is not a git repository. Double check that you’re in the correct directory specified by the docs.

  • Error: Permission denied (publickey)

You probably don’t have the correct keys set up. Make sure that in the same machine that you’re using git commands from, check that ~/.ssh/<key_name>.pub is added to your Github account. If there is no such file, visit this page to generate a new set of keys.

If you’re absolutely certain you’ve done these steps, try eval "$(ssh-agent -s)" and ssh-add ~/.ssh/<key_name>.

  • fatal: Authentication failed for 'https://github.com/...

Use the SSH clone url instead of the HTTP one. It should start with git@github.com:....