
【Git】push時のエラー
localで作成したブランチをcommitしたのちリモートリポジトリにpushしようとしたところ下記エラー発生(定期)
git push -u origin my-branch-name
error: failed to push some refs to 'https://github.com/remote-repository.git'
Githubのマイページのhttps://github.com/settings/tokensにアクセス
下記Personal access tokensの生成ページで < Generate new token > ボタンをクリック
生成されたトークンをターミナル上で、Githubアカウント名(ユーザ名)入力後、パスワード要求時に貼り付ける
Username for 'https://github.com': my-git-username
Password for 'https://my-git-username@github.com': paste generated token
これでpushされたら完了