Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Remove binary files from git history #7

Open
cschol opened this issue Sep 25, 2018 · 2 comments
Open

Remove binary files from git history #7

cschol opened this issue Sep 25, 2018 · 2 comments

Comments

@cschol
Copy link

cschol commented Sep 25, 2018

Here is what you should need to do (be sure to keep a backup of your repository around):

  1. Get bfg repo cleaner
cd /tmp
wget http://repo1.maven.org/maven2/com/madgag/bfg/1.13.0/bfg-1.13.0.jar
  1. Clone a mirror of your repository to /tmp
cd /tmp
git clone --mirror https://github.com/chrisbeckstrom/Beckstrom_Research_Rack.git
  1. Clean offending files from repository
java -jar /tmp/bfg-1.13.0.jar --delete-files '*.{d,o,dylib,so}' --delete-folders 'build' Beckstrom_Research_Rack.git
cd Beckstrom_Research_Rack.git
git reflog expire --expire=now --all && git gc --prune=now --aggressive
  1. Push changes to your repository
cd /tmp
git clone Beckstrom_Research_Rack.git Beckstrom_Research_cleaned
cd Beckstrom_Research_cleaned
git push origin master --force
@chrisbeckstrom
Copy link
Owner

thanks for the detailed breakdown @cschol !! I super appreciate it. I'm new to most of this, thanks for the help. I'll follow those steps to clean things up!

@cschol
Copy link
Author

cschol commented Sep 27, 2018

You're welcome. Let me know if you need any more help. Excited to try your plugin!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants