# Update 'README.md' · 1752324b09 - com.megaphonetech

Update doc and delete some .txt files · dc8b1ba1b3 - glances

Be care to take such actions for it would make changes that may can not be recovered. git addIt means to replace / update the files in the index area with the files in the working tree. thereforegit add b.txtAfter that, use the currently savedb.txtUpdate the b.txt file in index. rm b.txtJust a Linux command, which means to delete a file. For git, this is just removed from working treeb.txt。 Now that we have our complete list of deleted files, we can 'git rm' them: git rm git status | grep deleted | awk '{print $2}' The command essentially says, "Use grep to find all the lines ouput by 'git status' that have the word 'deleted' in it, then grab the 3rd column on the line and run 'git rm' on it." 2018-04-03 How to restore a deleted file: git checkout ~1 To make this process a little easier next time I need to do it, I created a git alias for finding deleted files by adding this to my .gitconfig file: [aliases] deleted = log --diff-filter=D --summary Now I can find and restore files like this: git deleted # find a deleted file$ git add -u Will add modified & deleted files in whole project to the staging area and will skip new files / folders. Let’s understand some examples, Example of ignoring new files / folders while adding other files to git. We are in our project folder and let’s check the git status of project 2018-11-11 2019-04-17 2020-10-07 2011-10-10 A checkout will have the same effect and restore the latest version of a file from HEAD..

3, -[._]s[a-w][a-z]. 4, -# session. 5, -Session.vim. 6, -# temporary. 7, -.netrwhist.