Github錯誤:fatal: Authentication failed for ‘https://github.com/ …

Github錯誤:fatal: Authentication failed for ‘https://github.com/ …

GitHub push程式碼發生錯誤:fatal: Authentication failed for ‘https://github.com/ …

使用的https提交,在用SourceTree提交程式碼時候發生錯誤,返回的錯誤提示說:

fatal: Authentication failed for 'https://github.com/ ... 

如圖所示:

解決方案,重新執行git config命令配置使用者名稱和郵箱即可:

git config -–global user.name "xxx" 
git config –-global user.email "[email protected]"