Git push from Visual Studio Code: “No anonymous write access. Authentication failed”

A simpler method is to use personal access tokens at GitHub. This feature can be set up by going to your GitHub account → SettingsDeveloper settingsPersonal access tokensGenerate a personal access token. Make your access control selections, generate, then copy and save your new token. After this, go to your Git project directory and this enter in the terminal:

git remote set-url origin https://YOUR_TOKEN_HERE@github.com/your_user/your_project.git

From now on you can easily do git push from the terminal or Visual Studio Code.

Leave a Comment

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)