git recover deleted file
git log --diff-filter=D --summary
git checkout $commit path/to/file$ git reset --hard HEAD~1rm -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 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.
Also in C++:
- powershell rename computer
- journalctl vacuum
- vim replace multiple lines
- extract tar gz
- how to install node in vs code
- ubuntu delete directory and all files
- howto register dll windows 10
- ubuntu burg install
- sudo doesnt work on windows
- bash uppercase bad substitution
- undo git reset HEAD~1
- install realtek rtl88xxau usb wifi driver ubuntu
- windows npm install permission denied
- how to restart psql in linux
- ubuntu install pip
- install c++ ubuntu
- how to install trello on linux
- awk print until match
- in ubuntu both mouse pad key working same
- get current commit message git
- linux vga wake up screen
- vncserver kali linux
- nvm install node
- list directory xargs linux