I screwed up by making a working branch but not switching to it.
ie something like
git branch fix-up
Now I have a few commits on master that I really wanted on fix-up and fix-up
is where I wanted master to be.
I think I can fix this by using something like
git reset --soft HEAD^^
git checkout fix-up
git commit ...
But can I fix this by flipping the names around as follows?
git branch -m master tmp
git branch -m fix-up master
git branch -m tmp fix-up
You received this message because you are subscribed to the Google Groups "Git
for human beings" group.
To post to this group, send email to email@example.com.
To unsubscribe from this group, send email to
For more options, visit this group at