Skip to content

Instantly share code, notes, and snippets.

@notmandatory
Last active December 12, 2021 06:25
Show Gist options
  • Save notmandatory/2486392d207b5dfff85082d7747e685e to your computer and use it in GitHub Desktop.
Save notmandatory/2486392d207b5dfff85082d7747e685e to your computer and use it in GitHub Desktop.
git clone git@github.com:bitcoindevkit/BDWallet.git
cd BDWallet
git filter-repo --analyze
more .git/filter-repo/analysis/blob-shas-and-paths.txt
git filter-repo --force --invert-paths --path-glob '*.aar' --path-glob '*/mountain_cover.jpg' --path-glob '*/mountain_background.jpg' --path-glob '*/temp_graph.png'
git gc
git remote add origin git@github.com:bitcoindevkit/BDWallet.git
git push origin --force 'refs/heads/*'
## to fix fork git@github.com:notmandatory/BDWallet.git
git checkout master
git remote add upstream git@github.com:bitcoindevkit/BDWallet.git
git fetch --all
git reset --hard upstream/master
git checkout -b <wip_branch>_fix
git cherry-pick <revs in order from wip_branch>
git branch -D <wip_branch>
git gc --aggressive --prune
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment