So I recently felt the need to compress all the git repositories on my
machine. This was mainly because I wanted to reduce the number of files
I had to wait to backup. So here’s the commands I used to make that
happen.
I often need to download a gitignore when starting a project, so I made
a function that will get a gitignore for a given project from GitHub’s
collection.
This command will find the largest file from the output of git ls-files
which outputs the path to each of the files stored in git below your
current directory.