skip to Main Content

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.

2

Answers


  1. 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

    Login or Signup to reply.
  2. 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.

    Login or Signup to reply.
Please signup or login to give your own answer.
Back To Top
Search