DreadyCrig
11/9/2018 - 4:10 PM

Bash script for removing all PSD files from a repo history.

Bash script for removing all PSD files from a repo history.

#!/bin/bash
set -o errexit
 
git filter-branch --tree-filter "git rm -r -f --ignore-unmatch *.psd" HEAD

rm -rf .git/refs/original/ && git reflog expire --all &&  git gc --aggressive --prune