简体   繁体   中英

git deleted all my files. How do I restore them?

I started using git yesterday and I managed to lost all my files. Since then I've done a lot of searching but still wasn't able to recover them. However, when I do: $git show <content on .git/REBASE_HEAD> I notice all my files are there. Also, $git status says: rebase in progress; onto 6ad34aa .

Can anyone point me in the right direction?

In your git repo rebase is in progress.

Try to abort rebasing and return initial state

git rebase --abort

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM