Skip to content

Instantly share code, notes, and snippets.

@mithereal
Last active February 1, 2018 00:35
Show Gist options
  • Save mithereal/eb36235d1b8c768e00867894ea07230f to your computer and use it in GitHub Desktop.
Save mithereal/eb36235d1b8c768e00867894ea07230f to your computer and use it in GitHub Desktop.
install bfg repo cleaner in arch/antegros
function git_clean_passwords() {
if [ -n "$1" ]
then
java -jar $HOME/bin/bfg.jar --replace-text passwords.txt $1
else
java -jar $HOME/bin/bfg.jar
fi
}
#!/bin/bash
wget http://repo1.maven.org/maven2/com/madgag/bfg/1.13.0/bfg-1.13.0.jar
cp ./bfg-1.13.0.jar $HOME/bin/bfg.jar
touch .bfg_passwords
sudo cp ./bfg-1.13.0.jar /usr/lib/bfg.jar
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment