Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Authentication failed publishing a repository from Github for Windows

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.

like image 762
Stuart Leyland-Cole Avatar asked Jul 22 '12 17:07

Stuart Leyland-Cole


People also ask

How do I authenticate GitHub desktop?

Authenticating an account on GitHub To the right of "GitHub.com," click Sign In. In the "Sign in Using Your Browser" pane, click Continue With Browser. GitHub Desktop will open your default browser. To authenticate to GitHub, type your GitHub.com credentials and click Sign in.

How do I authenticate on GitHub?

To authenticate as a GitHub App, generate a private key in PEM format and download it to your local machine. You'll use this key to sign a JSON Web Token (JWT) and encode it using the RS256 algorithm. GitHub checks that the request is authenticated by verifying the token with the app's stored public key.


1 Answers

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.

like image 174
Cristian Boariu Avatar answered Oct 14 '22 06:10

Cristian Boariu