@replitjeremy kindly emailed me with the following solution:
This issue occurs when git is exited in the middle of doing some action. It creates an index.lock file in the .git folder of your project that prevents future commits.
Can you try opening the shell (cmd/ctrl + "." -> type "shell" ) and running
rm .git/index.lock? I'm having trouble tracking down exactly what causes this. Have any of the following things possibly occurred?
- working with someone on this repl via multiplayer and trying to simultaneously commit
- closing the repl while a git action was still loading (the sidebar would be greyed out at that time)
- being forced to reconnect by us while using git (the editor will reload and show "offline" briefly, and then a reconnect message will appear)