I have accumulated a lot of git for my project. As a first step in clearing the repo up, I would like to split each commit into two commits: one that only applies to a specific file / some / directory / file, and the other that deals with everything else.
Since the git story is quite long, I would like to avoid this manually.
Some approaches that I was thinking about (but have not really tried):
- using
git rebase --exec with a script that does the splitting. - using
filter-branch . (not familiar with this tool)
However, since this seems like a fairly common problem to me, it seemed to me that I would check here before trying to invent a wheel. Is there any automated way to do this?
source share