I recently made the mistake of pushing to my repository while having a .git
folder inside another folder. Doing so has resulted in unclickable folders with white arrows on them on my GitHub repository. Clicking on the commit message shows Submodule XYZ added at abc123
.
I've proceeded to go into that folder and do rm -rf .git
, but I'm unable to undo the process.
I've taken a look at this other relevant question and did what is suggested, but the proposed solutions don't seem to apply to my case.
Does anyone know how I may be able to undo this? Thanks.