Tools and Processes

bash tricks accumulated over the last several weeks: Argument expansion Need to move or copy a file under a long directory tree? cp /this/is/a/really/long/path/to/{file-01,file-02}.txt Git filter-branch Need to get rid of large media files in your Git repo throughout the entire history of the project? git filter-branch --index-filter \ 'git rm --cached --ignore-unmatch ./path/to/file/*.ext' \ --tag-name-filter cat -- --all Supports wildcard matching! History Expansion There are several techniques here, but my current favorites are sudo !...

2013-11-06 · 2 min · 244 words · Nathaniel Hoag