Sourcetree remote: Invalid username or password

前端 未结 15 1257
失恋的感觉
失恋的感觉 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:45

    I just solved this problem by using an access token. I use macbook, all answers above didn't work for me. Go to your github account, click your profile image on right top corner, then click:

    Settings -> Developer settings -> Personal access tokens -> Generate new token

    Paste this token into sourcetree popup window, required password area, instead of typing your account password. Github uses two step verification, so you need to use a token rather than account password. Good luck! Let me know if this works for you.

提交回复
热议问题