Sourcetree remote: Invalid username or password

前端 未结 15 1250
失恋的感觉
失恋的感觉 2021-01-30 00:16

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

相关标签:
15条回答
  • 2021-01-30 00:18

    If you do have two-factor authentication enabled in GitHub you might have gotten here as well. In that case follow AlonR's answer (for Mac - worked for me) or Sven's answer (for Windows - untested) and then follow the instructions here to make it work.

    • Currently the GitHub token page is here.
    0 讨论(0)
  • 2021-01-30 00:22

    I had the same problem , I Relogged In to the account solved this error for me.

    0 讨论(0)
  • 2021-01-30 00:23

    I faced this issue when i updated Embedded Git. Solved it by removing passwd file. you can find it here. then restart source tree.

    AppData\Local\Atlassian\SourceTree\passwd

    0 讨论(0)
  • 2021-01-30 00:24

    For OSX following by steps below

    Go to: Preferences -> Advance -> Choose the account in table you want to remove -> Click to remove

    0 讨论(0)
  • 2021-01-30 00:27

    I had the same problem for Sourcetree 2.10, but with the above solution not working.

    Reverting to version 2.0 solved it.

    Sourcetree download archive: (https://www.sourcetreeapp.com/download-archives)

    0 讨论(0)
  • This worked for me on Mac

    1. Goto Preferences -> Git
    2. Use System Git
    0 讨论(0)
提交回复
热议问题