🙄
GitHub 個人用アクセス トークン (PAT) 更新後のfatal: Authentication failed for エラー解消
git clone https://(ユーザー名):(アクセストークン)@github.com/hoge/test.git
でクローンしている場合に起こったことです
解消方法
remote urlのアクセストークン
部分を更新してセットし直す
まずは現状の確認
$ git config --get remote.origin.url
https://(ユーザー名):(古いアクセストークン)@github.com/hoge/test.git
remote urlの更新
$ git remote set-url origin https://(ユーザー名):(新しいアクセストークン)@github.com/hoge/test.git
git pull
などをして認証が通ることが確認できれば終わり🚀
Discussion