I really don't know what I just did, so I'm going to give a kind of schedule.
I was first trying to create a gitHub repository. I have a folder that stores all the files from my site, and I have a .git folder. Every time I made changes, etc., and everything seemed normal.
Today I tried to merge the two branches of the project I was working on. I tried to "merge" and "reload" the commands, but I could not understand what was happening or what I was doing, so I decided that I was just starting with git.
I pulled the .git folder out of my website folder (I did not delete it, which I think could be my saving grace here). Created a new git Init in the folder and transferred the website files to it.
What when I noticed that a lot of files were uploaded. I think they are still in the first .git folder. Is there a way to restore a directory from this folder?
source
share