My Repl no longer commits and pushes to Github
Hi,
For some reason my Repl no longer commits and pushes to Github.
Each time I press the green 'commit & push' button nothing happens, and the commit doesn't show up on my GitHub repo.
Can someone help with this?
Many thanks
Roland
RolandJLevy
Solved
@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 + "s" -> 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)
I figured out a way to commit your changes. Open a command window Shift + CTRL + s then just type git push. It will ask for your username and password for Git and bam it works.....
Hi
@mfutala, thanks for your suggestion. The solution mentioned above works well but I will try what you said next time I have this problem asgit push
is much easier to remember :)