我用這臺計算機上以前的github帳戶guthub設置叫我的帳戶當我運行此命令Github上錯誤的用戶名
ssh -T [email protected]
Hi myaccount! You've successfully authenticated, but GitHub does not provide shell access.
好,不過我現在設置有一個名爲samaccount新GitHub的帳戶,但我不能運行這個命令我得到這個錯誤。
git push -u origin master
我得到這個錯誤
ERROR: Permission to samueleast/Samuel-East-S3-Audio-Playlist-Player.git denied to myaccount.
我不希望它使用我的帳戶應該使用samaccount!
我按照這裏的所有步驟http://help.github.com/mac-set-up-git/ 設置全新的ssh密鑰。
,並運行此命令多次
git config --global user.name "samaccount"
,但它仍然使用我的帳戶及其SOOO煩人我要去哪裏錯了???
所以你創建了兩個github上帳戶在同一臺計算機上?你上傳了相同的密鑰嗎?我的意思是'id_rsa.pub' –