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

33 Views Asked by At

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.

1

There are 1 best solutions below

0
Marina Panova On

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