I\'m using VS Code with Git - it\'s in portable location C:\\_DEV\\bin\\git and is also added to Windows PATH so it works just fine with no remotes.
I have a OneDriv
I faced same issue. I just resolved this issue with the following steps:
1- Close Visual Code
2- Open project on git bash command line
3- Commit the code again