1. 程式人生 > >SourceTree push 時密碼錯誤提示解決方案(Invalid username/password)

SourceTree push 時密碼錯誤提示解決方案(Invalid username/password)

 git push密碼錯誤解決方法

配置\.git\config檔案

最簡單的解決方法

我最近用SourceTree push 我的code
但是總是提示出密碼錯誤
 fatal: remote error: Invalid username/password.

兩種方法:

第一種:
first method:

clone的時候,加上github使用者名稱和密碼在你clone地址上:

https://xplx:[email protected]/xplx/eos-study.git

(其中xplx:使用者名稱,654321:使用者密碼,github.com/xplx/eos-study.git

:專案地址。)

https://username:[email protected]github.com/xplx/eos-study.git

第二種方法
找到\.git\config檔案

把裡頭的
https://github.com/xplx/eos-study.git
改成:
https://username:[email protected]github.com/xplx/eos-study.git

接下來大功告成