If you receive the following error message. "Another git process seems to be running in this repository, e.g. an editor opened by 'git commit'. Please make sure all processes are terminated then try again. If it still fails, a git process may have crashed in this repository earlier: remove the file manually to continue.". It means there is another instance currently running to process the same commit action. There is a git lock file created in the root folder and you need to delete it.
To fix this issue is quite easy. You can simply run the following code in the command prompt.
rm .git/index.lock
Below is the screenshot taken in Visual Studio Code.