I was trying to open a repository but instead I opened a folder on my computer with all my work, I didn't know how to close it and I just moved the folder to another location, but I lost all the files I had in that folder. Is there a way to recover my files? I am using Ubuntu.
CodePudding user response:
Use git log and check for the commit and later use git revert to revert the commi, this should usually solve the problem.
CodePudding user response:
ok, I just fixed it, I needed to install a program called r-linux and recover the files again. It took a few minutes but apparently everything is fine.