erikpalla
5/11/2017 - 1:07 PM

Global config file for Git

Global config file for Git

[user]
name = Erik Palla
email = hello@erikpalla.com

[alias]
change-commits = "!f() { VAR=$1; OLD=$2; NEW=$3; shift 3; git filter-branch --env-filter \"if [[ \\\"$`echo $VAR`\\\" = '$OLD' ]]; then export $VAR='$NEW'; fi\" $@; }; f "