This is a bunch of links for useful git commands that I really need to keep track of, with mini-tutorials attached. So, let's begin.
Link
Rebasing forks is pretty easy. You add a connection to the primary repo called "upstream", and then just rebase to that.
Link
The Dolphin devs were very helpful with some of my early git work, so props to them for this one. It's mistyped, so the actual command should be
git reset --hard HEAD~n
The rest of what Lioncash wrote is covered in Squashing Commits.
Link
Man, git really needs a simple git squash
command. Basically, you take the last n
commits you have and run git rebase -i HEAD~n
. This will give you a text file, where you can squash commits into each other, then another text file where you can edit the commit message. This SHOULD work fine. If you want to delete commits, you'll want to look at git reset
.