Horje
git recover deleted file Code Example
git find when file was deleted
git log --full-history -- your_file
recover lost file git
git log --diff-filter=D --summary
git checkout $commit path/to/file
git deleted file error
$ git reset --hard HEAD~1
git recover deleted file
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 
Git Restoring Deleted Files
$ git checkout <commit hash> -- <filename>
remove git deleted files
git add .  => Add all (tracked and modified)/new files in the working tree.

git add -u => Add all modified/removed files which are tracked.

git add -A => Add all (tracked and modified)/(tracked and removed)/new files in the working tree.

git commit -a -m "commit message" - Add and commit modified/removed files which are tracked.




Shell

Related
ubuntu install docker-compose Code Example ubuntu install docker-compose Code Example
how to install gdal on pyhon 3.9 Code Example how to install gdal on pyhon 3.9 Code Example
how to git push to current branch Code Example how to git push to current branch Code Example
wsl terminate distro Code Example wsl terminate distro Code Example
git sync branch from master Code Example git sync branch from master Code Example

Type:
Code Example
Category:
Coding
Sub Category:
Code Example
Uploaded by:
Admin
Views:
9