$ git rev-list -n 1 HEAD -- path_to_file #this gives you the commit's hash $ git checkout commit_hash^ -- path_to_file # it restores the file
```python import sched import datetime, time
$ git log #Get the commit_ID that you want to move $ git checkout [right_branch] $ git cherry-pick [commit_ID]
$ awk 'NR==1524' file.txt # print the 1524th line of the file using awk $ sed -n '1244p' file.txt # print the 1244th line of the file using sed
$ less +56g hugefile.txt # it goes to the 56th line $ less +56p hugefile.txt # it goes into the 56% of the file $ less +56P hugefile.txt # it goes to the...
Unfortunately MySQL doesn’t have any command to drop all tables or to truncate the database. It has just DROP TABLE and DROP DATABASE.