0

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?

marc_s
  • 732,580
  • 175
  • 1,330
  • 1,459
bigsmoke
  • 5
  • 1
  • 4

1 Answers1

1

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.

bgsuello
  • 582
  • 5
  • 12