I have just started using git. Rebase is great stuff. I should have used it in a specific earlier case.
is there a perfectly acceptable way to rebase old commits for th
In general, if you've shared a commit with someone else, don't rebase it.
If you haven't shared a commit with anyone else, you can do whatever you want to it.
See the "RECOVERING FROM UPSTREAM REBASE" section of the git-rebase manpage for more info.
You should positively only do this for commits that have not been pushed upstream. That said, I find it easiest to use git rebase -i <commit>
where <commit>
is the id of a commit that is at least as old as the newest one you do not want to mess with. When your editor pops up, it will contain instructions about how to squash and/or delete commits.