Authentication failed publishing a repository from Github for Windows

13,420

Solution 1

It turns out that the problem was Github for Windows was having a problem with the password it had stored. Github support's instructions were as follows:

  1. Log out of Github for Windows.
  2. Change my password on github.com
  3. Log back into Github for Windows.

I was then able to publish my changes.

Solution 2

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.

Share:
13,420
Stuart Leyland-Cole
Author by

Stuart Leyland-Cole

Updated on July 29, 2022

Comments

  • Stuart Leyland-Cole
    Stuart Leyland-Cole almost 2 years

    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.