Git Personal Accessトークン-REmoteの生成方法:No anonymous write accessエラー処理


remote: No anonymous write accessこれは、権限がないためのエラーです.
解決策->ファイルの権限を変更します.
Gitホームページに行きます.
アカウントSettings>Developer settings(下)

Personal access tokens」をクリックします.

注意:https://docs.github.com/en/authentication/keeping-your-account-and-data-secure/creating-a-personal-access-token

そしてcreate token次の画面にはPersonal access tokensが表示されます.

エラーを解決するには2つの方法があります.
1)git pushの場合は、以下のコマンドを入力すればよい.
$ git push https://{token}@github.com/{username}/{repo_name}.git
2)gitconfig設定
$ git config --global --unset credential.helper
git pushが表示されるウィンドウに名前とパスワードを入力します.
  • パスワードにPersonal Access Tokenを入力すればよい.
  • あとはGit Pushだけでいい!

    リファレンス


  • https://hapbbying.tistory.com/167?category=982758

  • https://docs.github.com/en/authentication/keeping-your-account-and-data-secure/creating-a-personal-access-token