0

After

sudo git stash
sudo git stash apply stash@{1}

untracked files which were not stashed were deleted.

Is there a way to restore them? I'm using Centos 7.

Tried to list these files in git somewhere git rev-list -g stash | xargs -n1 git ls-tree -r | sort -u | grep conf but cannot see what I'm searching.

4
  • i dont think you can recover information you havent stored.. Commented Jan 30, 2024 at 21:06
  • may be it is possible not by git tools but using some linux recovering instruments Commented Jan 30, 2024 at 21:15
  • something like this? i havent tried but seems worth to try. afaik, the chances getting something back intact after you mess (write stuff) into the disk is pretty slim. Commented Jan 30, 2024 at 23:10
  • Thank you so much, Bagus! Useful link. Actually I already restored system - did git pull again and found old config files. Seems like it works, huh. Really appreciate your help, thank you. I was in such a panic that any word is useful. Will copy the whole repo folder for any changes next time.. Commented Jan 30, 2024 at 23:20

1 Answer 1

0

Restored system - did git pull again and found old config files. Will copy the whole repo folder for any changes next time..

Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.