Skip to content

GitHub Desktop for Mac deleted half of my project files. #23016

Discussion options

You must be logged in to vote

What you can do is create a temporary recovery branch off of the commit you made prior to reverting your changes. You can then merge that recovery branch into your master branch once you have verified that everything is correct. Here’s how to do that using the command line:

git checkout -b recovery d6c3e83

This creates a recovery branch off of the SHA of your previous commit. You should see this branch in GitHub Desktop after running that command.

Let me know if you run into any issues with this.

Replies: 8 comments

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Answer selected
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
5 participants