If I may suggest, instead of fetch remote parent branch, I used to use git pull --rebase cmd.
For example, if I need to rebase 'develop' branch from master, I'll do git pull --rebase origin master.
This prevent me to forget about fetching the HEAD of master every time I need to rebase.
Another point, if you really need to rewrite history of a project, I would suggest to learn git reflog cmd also. It's really convenient to recover deleted commit for example, or to cancel a mishandling rebase...
Thx again
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.
Hi Christopher,
Nice article, many thx!
If I may suggest, instead of fetch remote parent branch, I used to use
git pull --rebase
cmd.For example, if I need to rebase 'develop' branch from master, I'll do
git pull --rebase origin master
.This prevent me to forget about fetching the HEAD of master every time I need to rebase.
Another point, if you really need to rewrite history of a project, I would suggest to learn
git reflog
cmd also. It's really convenient to recover deleted commit for example, or to cancel a mishandling rebase...Thx again