stratum / fabric-tna

The SD-Fabric data plane
https://docs.sd-fabric.org/
30 stars 15 forks source link

Remove traces of tofino compiler artifacts from git history #52

Closed ccascone closed 3 years ago

ccascone commented 4 years ago

We can use git filter-branch:

git filter-branch --tree-filter 'rm -rf src/main/resources/p4c-out' -- --all

This requires rewriting history for all branches

robertmacdavid commented 3 years ago

A perhaps better alternative is the BFG repo cleaner, which is referenced by the github docs as a faster alternative: https://rtyley.github.io/bfg-repo-cleaner/ It is specifically meant for removing files from a repo's history, and updates all refs (including open branches I believe).

bocon13 commented 3 years ago

Fixed in main branch. This issue can be closed when all branches are rebased against main and master is deleted.

Branch rebase status:

ccascone commented 3 years ago

Thanks @bocon13 for helping on this. All relevant branches have been rebased and PR re-opened. Closing this issue.