Recover deleted file

What if we want to recover deleted file or lost file in erpnext , for eg .py files got deleted and want to recover it from terminal ?

If you are using version controller (GIT) and files are committed, then you can recover them from git commit history.

@pooja.m
If you don’t have any customization in erpnext app. Then go to /apps/erpnext and use
git stash or git checkout . to undo changes.

After using “git checkout” command, I got this
Your branch is up-to-date with ‘upstream/master’.