git push and commit is not working in Vscode
17,573
I think that you don't stage the files before committing.
You can decide what files you want to commit and what files you don't want to commit.
By default, files are installed and won't be committed.
In visual studio code, you can stage changes in the git view using the +
button:
After that, you should be able to commit and push the stages files.
Comments
-
Satyam Shah almost 2 years
I signed up in vs code with git , did all setup , my repository is loading and showing all the modifications done but the commit and push is not working , as i press commit no error shows up. It syncs properly with git . I even tried to remove all and re do all.
-
dan1st almost 4 yearsI think the OP meant the VSC integration, not the CLI...
-
Juhana Pietari Lehtiniemi over 3 yearsIn the Visual Studio Code settings there seems to be a settings for "Enable smart commit" ("Commit all changes when there are no staged changes"). This way you can automatically commit all without staging the files separately. Saved me some clicks.