Git fatal: Authentication failed
git使用過程中遇到的一個問題:git push 的時候出現了讓我輸入使用者名稱和密碼,然後就出現了fatal: Authentication failed的錯誤,關鍵是其他的專案都沒有問題,就這個專案,pull也出錯,push也出錯,在網上找了半天解決方案,修改了密碼,替換了ssh key但是還是沒有解決。
經過一番研究後,發現gitconfig檔案裡面這個專案的配置裡出現了https!!!原來是這個問題,不會修改,只能刪掉專案重新用ssh方式再拉一次,果然都正常了,事後細想,這個專案我是用github客戶端拉下來的,所以預設的是https,以後我還是用命令列做這些操作吧。