Sourcetree remote: Invalid username or password

Sven van den Boogaart

Im trying to push to github with sourcetree but get the following error:

git -c diff.mnemonicprefix=false -c core.quotepath=false push -v --tags origin live_version:live_version remote: Invalid username or password. fatal: Authentication failed for 'https://github.com/myname/myrepo/' Pushing to https://github.com/myname/myrepo

Completed with errors, see above.

enter image description here However when I go to

tools > authentication > my github account

And click edit > refresh oauth token enter image description here A page opens and I get:

Authentication Successful

SourceTree has been successfully authenticated. You may now close this page.

It always worked but it suddenly stopped, i do not have two factor authentication. I tried deleting the account and adding it again to no avail. How can I get the connection working again so that I can push my project to github.

Sourcetree version 2.1.8.0

Sven van den Boogaart

I found the answer here, it is a known bug for version 2.1.8+

The following steps fixed it for me:

Tools > Options > Git > Update Embedded Git

Also pushing with the command line works.

EDIT

Also adding @Latisha's answer:

1. Do the above.
2. Close Sourcetree
3. Delete AppData\Local\Atlassian\SourceTree\passwd 
4. Restart SourceTree
5. Hurray!!!

Collected from the Internet

Please contact [email protected] to delete if infringement.

edited at
0

Comments

0 comments
Login to comment

Related

From Dev

remote: Invalid username or password, fatal: Authentication failed for

From Java

git remote: Invalid username or password. fatal: Authentication failed - ubuntu

From Dev

remote: Invalid username or password. fatal: Authentication failed for

From Java

GitHub: invalid username or password

From Dev

Invalid Username or Password in Codeigniter 3

From Dev

PHP login "invalid username and password"

From Dev

orientdb connect invalid password and username

From Dev

Git Push - Username and password in the remote url

From Dev

Linux remote tool-winexe username/password

From Dev

Git on Yosemite keeps asking for remote username and password

From Dev

Remote Desktop connection without username and password

From Dev

C# Error 401 - Invalid username or password

From Dev

Domino Web SSO : Invalid username or password was specified

From Dev

Google app engine launcher: Invalid username or password

From Dev

Cannot deploy with goapp - invalid username or password

From Dev

Invalid username and password on login, CakePHP 2.5.5

From Dev

Username/Password Invalid Login Android Apps

From Dev

Php login "Invalid username and password" using mysql

From Dev

Storing encrypted username/password for authentication on remote website without OAuth

From Dev

How to automatically enter username and password when prompted to connect to a remote server

From Dev

kuali - ORA-01017: invalid username/password; logon denied

From Dev

Invalid username or password at login() using BlowfishPasswordHasher in CakePHP 2.x

From Dev

New One or both of Username and Password are invalid. Error

From Dev

How to resolve unable to push to GitHub due to "Invalid username or password"?

From Dev

spring security bad credentials distinguish between invalid username or password

From Dev

How to throw an error for Invalid username or password if the data is not matched with the DB?

From Dev

Display Error message when connection or Invalid Username or Password in VBA

From Dev

SourceTree - remote: Unauthorized

From Dev

SourceTree keeps asking for Github password

Related Related

  1. 1

    remote: Invalid username or password, fatal: Authentication failed for

  2. 2

    git remote: Invalid username or password. fatal: Authentication failed - ubuntu

  3. 3

    remote: Invalid username or password. fatal: Authentication failed for

  4. 4

    GitHub: invalid username or password

  5. 5

    Invalid Username or Password in Codeigniter 3

  6. 6

    PHP login "invalid username and password"

  7. 7

    orientdb connect invalid password and username

  8. 8

    Git Push - Username and password in the remote url

  9. 9

    Linux remote tool-winexe username/password

  10. 10

    Git on Yosemite keeps asking for remote username and password

  11. 11

    Remote Desktop connection without username and password

  12. 12

    C# Error 401 - Invalid username or password

  13. 13

    Domino Web SSO : Invalid username or password was specified

  14. 14

    Google app engine launcher: Invalid username or password

  15. 15

    Cannot deploy with goapp - invalid username or password

  16. 16

    Invalid username and password on login, CakePHP 2.5.5

  17. 17

    Username/Password Invalid Login Android Apps

  18. 18

    Php login "Invalid username and password" using mysql

  19. 19

    Storing encrypted username/password for authentication on remote website without OAuth

  20. 20

    How to automatically enter username and password when prompted to connect to a remote server

  21. 21

    kuali - ORA-01017: invalid username/password; logon denied

  22. 22

    Invalid username or password at login() using BlowfishPasswordHasher in CakePHP 2.x

  23. 23

    New One or both of Username and Password are invalid. Error

  24. 24

    How to resolve unable to push to GitHub due to "Invalid username or password"?

  25. 25

    spring security bad credentials distinguish between invalid username or password

  26. 26

    How to throw an error for Invalid username or password if the data is not matched with the DB?

  27. 27

    Display Error message when connection or Invalid Username or Password in VBA

  28. 28

    SourceTree - remote: Unauthorized

  29. 29

    SourceTree keeps asking for Github password

HotTag

Archive