gitcentos7restoregit-stash

git: recover untracked files after git stash - git stash apply


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.


Solution

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