I've saved the following as an .sh file and executed it from my root directory: https://gist.github.com/emiller/6769886
Got a couple of errors:
script.sh: line 65: conditional binary operator expected
script.sh: line 65: syntax error near `=~'
script.sh: line 65: `while [[ $1 =~ ^\- ]]; do'
And then when I ran the git-rewrite-history command I received an error:
'git-rewrite-history' is not recognized as an internal or external command,
operable program or batch file.
Would appreciate help, 0 linux experience here.
Thanks.
Edit - I'm using bash from windows, which is probably related to the issue. Will attempt on a Linux distribution.