Last active
February 1, 2018 00:35
-
-
Save mithereal/eb36235d1b8c768e00867894ea07230f to your computer and use it in GitHub Desktop.
install bfg repo cleaner in arch/antegros
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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