Reputation: 3398
There is a "Push" menu item, but when I click on it, nothing happens except for a subtle progressing bar showing up and never finished. From Visual Studio Code's Docs page, I found this line: "Credential management is not handled by VSCode for now," and that page links to a GitHub page on credential helper, which is too specific for other remote server (in my case, bitbucket) and not specific enough on how to set up for VS Code.
Upvotes: 46
Views: 71501
Reputation: 42
if you want push to an own server where you need to enter a password because you use ssh authentification you can do it like this:
Start Visual Studio Code from the git commandpromt with the command code
I found this at the end of this page https://code.visualstudio.com/Docs/editor/versioncontrol in the FaQ the Question was "Can I use SSH Git authentication with VS Code?"
now every time you interact with the git server you get prompted for the password
here is a guide how to run a command with git when you open git Windows shortcut to run git bash script
Upvotes: 1
Reputation: 436
If you are in windows use this line in your git bash:
git config --global credential.helper wincred
Next time git will remember your password. Thats all, the VSCode will work fine ;)
Bye Bytes !
Upvotes: 42
Reputation: 151
Tell Git your name so your commits will be properly labeled. Type everything after the $ here:
git config --global user.name "YOUR NAME"
Tell Git the email address that will be associated with your Git commits. The email you specify should be the same one found in your email settings on Github. To keep your email address hidden, see "Keeping your email address private".
git config --global user.email "YOUR EMAIL ADDRESS"
See this : Set Up Git
Upvotes: 11
Reputation: 257
If you (or future searchers) are looking for instructions specifically for bitbucket (although for git more generally) Here is the Atlassian help page for permanently authenticating using credential caching.
Upvotes: 7
Reputation: 23009
Currently, VSCode implements git integration by spawning git
. If git push
works on your command line without prompting for username / password, it should work from VSCode too.
I don't know if setting up SourceTree to not prompt for a username / password is sufficient to get vanilla command line git
not prompt as well.
Upvotes: 5