More than 1 year has passed since last update.
よく忘れるのでまとめました。
はじめに
Githubで二段階認証にした後に git push
などをすると弾かれるようになります。Qiita上にもいくつか方法が載っていましたが、一番ラクな方法が見つかったのでお困りの方はぜひ参考にしていただきたいと思います。
やり方
-
Generate new token で token を生成(repo は必須であとはお好みで
- ターミナルで情報を入力して下記を実行してください
cat << EOF > ~/.netrc
machine github.com
login <your-github-id>
password <presonal-access-token>
EOF
以上で完了です。
参考URL
[Git][GitHub]GitHubにPushする際に認証失敗する
Why not register and get more from Qiita?
- We will deliver articles that match you
By following users and tags, you can catch up information on technical fields that you are interested in as a whole
- you can read useful information later efficiently
By "stocking" the articles you like, you can search right away
Sign upLogin