ucan-lab / tips

5 stars 0 forks source link

Mac git push -u origin master で remote: Permission to ... #15

Open ucan-lab opened 6 years ago

ucan-lab commented 6 years ago

別アカウントでpushしたいが古いユーザー情報が残っていてpushできない問題。

$ git push -u origin master
remote: Permission to xxxx/yyyy.git denied to zzzz.
fatal: unable to access 'https://github.com/xxxx/yyyy.git/': The requested URL returned error: 403
ucan-lab commented 6 years ago

キーチェーンアクセスにgitの認証情報が残っているのが問題でした。 github関連のキーチェーンを削除し直して実行し直したら解決しました。