Try to commit through the 'Source Control' in the left menu-bar (for VSCode). Left Up corner, click the ... and there you can commit and/or push.