Authentication failed publishing a repository from Github for Windows

Stuart Leyland-Cole picture Stuart Leyland-Cole · Jul 22, 2012 · Viewed 13.1k times · Source

I am trying out Github for Windows and I am getting the following error when I try to publish a newly created repository.

Authentication failed

Your credentials may be out of date. Please log out of the application and then log back in before retrying the operation.

Needless to say I've logged out and back in multiple times without success. I've also uninstalled and installed the latest version to no avail.

The repository is a new one I created within the application and contains only the .gitattributes, .git and README files.

I am a complete newbie to Github so it's quite possible I've messed something up during the setup process.

Answer

Cristian Boariu picture Cristian Boariu · Jul 7, 2014

I was able to solve this by:

  1. Press Settings - Open in GitShell.
  2. git status
  3. git push (or pull)
  4. introduce credentials (here is the most important step, somehow git client messed up or forgot your credentials).

After giving correct credentials you can exit from git shell and use git client again.