You have to add stage the files only then you can commit, f you want to use CLI write git add <filename> or if you want to add all the changes write git add .
If you still want to use VSCode, just click on + button when hovering on file name in git sidebar and after you have added all the files you have to commit, then you can write commit message and push
Alternative to what’s suggested about staging the changes, you can commit all changes if nothing is staged: look for git.enableSmartCommit in the settings and check it if you’re in the GUI or set it to true if working with settings.json.
2
Answers
You have to add stage the files only then you can commit, f you want to use CLI write
git add <filename>
or if you want to add all the changes writegit add .
If you still want to use VSCode, just click on
+
button when hovering on file name in git sidebar and after you have added all the files you have to commit, then you can write commit message and pushAlternative to what’s suggested about staging the changes, you can commit all changes if nothing is staged: look for
git.enableSmartCommit
in the settings and check it if you’re in the GUI or set it totrue
if working withsettings.json
.