Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

A few times I've needed to perform certain operations on every commit of a branch in history (like say delete a file that shouldn't have been added to the repo).  In my a recent case, I was actually separating out multiple code bases from one big repository into several smaller repositories.  Luckily, the repository contained separate folders, where each folder (which contained separate and independent projects), so .  So basically I just had to move these folders into separate repositories... while keeping all history for the specific folder only.

...

Code Block
themeEmacs
git prune

(use 'git prune -n' to see what commits will be pruned without actually pruning).

...