Skip to content
Sign upLog in
← Back to Community
My Repl no longer commits and pushes to Github
Profile icon
RolandJLevy

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

commit & push button

Voters
Profile icon
CLAUDIATRAMONTI
Profile icon
python88
Profile icon
Nefomemes
Profile icon
RolandJLevy
Comments
hotnewtop
Profile icon
mfutala

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.....

Profile icon
RolandJLevy

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 as git push is much easier to remember :)

Profile icon
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?

  1. working with someone on this repl via multiplayer and trying to simultaneously commit
  2. closing the repl while a git action was still loading (the sidebar would be greyed out at that time)
  3. being forced to reconnect by us while using git (the editor will reload and show "offline" briefly, and then a reconnect message will appear)