Git Find When File Was Deleted

[Solved] Git Find When File Was Deleted | Shell - Code Explorer | yomemimo.com
Question : git find when file was deleted

Answered by : bare-faced-go-away-bird-94edk964wk6q

git log --full-history -- your_file

Source : | Last Update : Wed, 04 Dec 19

Question : git recover deleted file

Answered by : sophie-2v0blf03qytv

rm -rf deleted file, if there is any commit before use git commands:
// 1 Find out which comit has the copy of deleted file
git log
// 2 Use checkout to locate which comit what file location
git checkout branch-number-here -- file/location/in/folder/without/quote
example: git checkout 476c714 -- mvc/public/js/bundle.js 

Source : | Last Update : Thu, 23 Jul 20

Answers related to git find when file was deleted

Code Explorer Popular Question For Shell