DEV Community

Discussion on: Up your Git game and clean up your history

Collapse
 
nitnekb profile image
Quentin

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