FrontendDeveloper.in

Git question detail

How do you recover a deleted file from history?

Locate a commit containing the file and restore it using git restore --source=<commit> <file> or git checkout <commit> -- <file>.

Back to all Git questions
Get LinkedIn Premium at Rs 399