またもgithubにpushできない
たびたびpush しようとするとエラーが出る
$ git push -u origin master remote: Permission to addictionwhite/chef1.git denied to sublime0807. fatal: unable to access 'https://github.com/addictionwhite/chef1.git/': The requested URL returned error: 403
sshの設定など色々変えてもぱっと解消できず。
何か作業しようとしたときこういうところに引っかかると厳しい(やる気と時間がなくなる)
対処
[remote "origin"] url = https://github.com/username/demo.git ↓ [remote "origin"] url = https://username:password@github.com/username/demo.git
のように URL に username:passwordを含めるようにする。 これが一番てっとり早いと感じた
引用元 teratail.com