Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Accidentally pulled from GitHub which results in deletion of my project files #1356

Closed
abdul-rehman-2050 opened this issue Dec 31, 2020 · 3 comments

Comments

@abdul-rehman-2050
Copy link

I created some changes and new files in the project. Then I tried to commit to the GitHub. But if rejected with error. Then I pressed Pull button of the github repo. It changes my folder structure and take me to the old point(last commit). Now I had lost all my changes including new files. How can I recover or view the local project commits so that I could switch to the last commit? Or What is the other way to recover my files?

@yuwash
Copy link

yuwash commented Feb 20, 2021

The “undo” function might work (Ctrl + Z), but the unwarned discarding of local changes on a git pull does seem suboptimal

@kc0tlh
Copy link
Collaborator

kc0tlh commented Aug 23, 2023

This issue is now resolved! Full writeup in Github issue #2473

@kc0tlh kc0tlh closed this as completed Aug 23, 2023
@kc0tlh
Copy link
Collaborator

kc0tlh commented Aug 23, 2023

This issue is now resolved! Full writeup in Github issue #2473

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants