Unknown Git error

Bug description:
I cannot fetch/sync/commit to Git repo, and it says that there’s a bug in the app so… I’m reporting it here. There are no problems in VSCode, so it’s not my Git. Rebooting the repl using kill 1 didn’t help either.

Expected vs Current Behavior:
When I click on Refresh and fetch, I expect that it actually does that, and not that it gives me the same UNKOWN error message 4 times.

Steps to reproduce:

  1. Open a repl that has a Git repository previously set up
  2. Click on the Git tab
  3. Click on Refresh and fetch
    This might only occur on some repls.

Bug appears at this link: https://replit.com/@ggigabyte/snake42

Screenshot(s)/Screen Recording:

Browser/OS/Device: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Replit/1.0.5 Chrome/116.0.5845.228 Electron/26.4.1 Safari/537.36 ReplitDesktop

Replit Profile: https://replit.com/@ggigabyte

1 Like

Try running git stash then doing a ‘fetch’ command. After that, fast-forward to the stashed commit hash.

:frowning: Didn’t work. It says “No changes to stash”.

that’s weird.

EDIT:
there is a split in the commit histories. Try running git merge (or git rebase or smth, im just spitting out commands off the top of my head).

IIRC this is some weird bug with the UI thing, try using CLI only

Thanks for all the workarounds! However, the Git GUI bug is still there, so I can only commit, but not sync with GitHub through it.

1 Like

You should be able to use git push -u origin main through the Shell once, and then just git push thereafter.