Reputation: 5
Every time I try to push code from Visual Studio Code interface, it requires me to enter my GitHub username and password. How can I save my GitHub credentials so it doesn't ask me to enter them every time I push my code?
Upvotes: 0
Views: 5368
Reputation: 712
You need to setup a Git credential helper.
If you are using Git for Windows you can run the following command to save your credentials.
git config --global credential.helper wincred
For Mac/Linux see this guide on how to make Git remember your credentials.
Otherwise, you can enable ssh access to your repo.
Upvotes: 1