bigsmoke
bigsmoke

Reputation: 5

Visual Studio Code (vscode) and Git

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

Answers (1)

bgsuello
bgsuello

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

Related Questions