Search
 
SCRIPT & CODE EXAMPLE
 

SHELL

git find when file was deleted

git log --full-history -- your_file
Comment

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 
Comment

git-recover-deleted-file

$ git checkout <deletion commit hash>~1 -- <filename>
Comment

PREVIOUS NEXT
Code Example
Shell :: voice recorder for ubuntu 
Shell :: vim empty line 
Shell :: how to check hard disk space linux 
Shell :: npm dev dependencies 
Shell :: download gimp ubuntu 
Shell :: ubuntu install libc6-dev-i386 
Shell :: git commit amend 
Shell :: size of directory ps windows 
Shell :: conda install lightgbm 
Shell :: pip install tensorflow not working 
Shell :: ubuntu install nginx 
Shell :: install traceroute ubuntu 18.04 
Shell :: install ngrok 
Shell :: open visual studio code from terminal mac 
Shell :: how to undo git remote add origin 
Shell :: how to logout of git in terminal 
Shell :: rename a commit pushed 
Shell :: upgrade nltk version 
Shell :: How to use .AppImage on Manjaro 
Shell :: -bash: /usr/bin/composer: No such file or directory 
Shell :: No matching distribution found for PyJWT==2.0.1 
Shell :: file search linux by text 
Shell :: ubuntu server antivirus 
Shell :: linux opengl 
Shell :: remove notebook kernel 
Shell :: driver san francisco ui mode error 
Shell :: ubuntu camera 
Shell :: Clone a specific repository 
Shell :: git revert uncommitted changes 
Shell :: give full permission to folder in ubuntu 
ADD CONTENT
Topic
Content
Source link
Name
6+4 =