Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to do git push in Visual Studio Code?

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.

like image 445
zhouji Avatar asked May 01 '15 19:05

zhouji


People also ask

How do I push changes in Visual Studio code?

As you do your work, Visual Studio keeps track of the file changes to your project in the Changes section of the Git Changes window. To stage changes when you're ready, select the + (plus) button on each file you want to stage, or right-click a file and then select Stage.

How do I push and commit in Visual Studio?

Visual Studio also makes it easy to commit and sync with one click by using the Commit All and Push and Commit All and Sync shortcuts. When you double-click any file in the Changes and the Staged changes sections, you can see a line-by-line comparison with the unmodified version of the file.


2 Answers

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 !

like image 107
Esteban Quintana Avatar answered Sep 24 '22 00:09

Esteban Quintana


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

like image 44
behzad abbasi Avatar answered Sep 20 '22 00:09

behzad abbasi