Just remember to always git branch backup before you rebase. Then, after the rebase, you can git diff backup to make sure it went well. If something does go awry, you can just git reset --hard backup and start over.
I agree. But from my experience, people just learning how to rebase really don't want to know anything about git reflog.
The branch method is simpler for beginners.
For further actions, you may consider blocking this person and/or reporting abuse
We're a place where coders share, stay up-to-date and grow their careers.
Just remember to always
git branch backup
before you rebase. Then, after the rebase, you cangit diff backup
to make sure it went well. If something does go awry, you can justgit reset --hard backup
and start over.There's no need to create a backup branch. You can do
git diff HEAD@{N}~range
andgit reset --hard HEAD@{N}
. Also seegit reflog
I agree. But from my experience, people just learning how to rebase really don't want to know anything about
git reflog
.The branch method is simpler for beginners.