Having trouble with the Github commit Button in visual studio code

Issue

When I was trying to make some commit in Github repository, I am unable to click on the commit button.

unable to click on the commit button

I tried other ways like making commit through terminal and tried to push. But it wasn’t working.

Solution

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

Answered By – jainChetan81

This Answer collected from stackoverflow, is licensed under cc by-sa 2.5 , cc by-sa 3.0 and cc by-sa 4.0

Leave a Reply

(*) Required, Your email will not be published