So I have mistakenly committed my secrets.yml in previous commits (yikes!!) and I want to clean my git commit history of it. It seems the fasted simplest way is to use BFG. I have downloaded the jar file and installed the Java is requires, and I have created a mirror of my repo - but when I run the command as per the docs:
java -jar bfg.jar --delete-files secrets.yml my-repo.git
I get the error Unable to access jarfile bfg.jar
The docs are plenty pretty, but doesn't specify if there is something I should have done to install this or get it running, or linked to my mirror repo, and I am plenty confused. I watched a youtube tutorial that says I should create a symbolic link using a command like;
ln -s ~/bfg-1.11.6.jar /usr/local/bin/bfg
to run the bfg, except I am uncertain what the second part of that command is referring to( /usr/local/bin/bfg
) or where it should be pointing in my case, as that does not work for me as-is. I have the jar file saved in my user root directory. Do I need to move it? How do I run BFG on my mirror repo, and should I be inside my mirror app's directory when I run it?Or do I run it from outside of the app?