Logo
codingbitch
How to use Git rebase

So you heard about git rebase.
You thought: “I’m ready to level up.”

Now your branch is a war crime and git log looks like abstract art.

Here’s the lore:
git fetch origin
git rebase origin/main

That’s the good kind.
Now here’s the dark kind:
git rebase -i HEAD~5

This opens a portal to a cursed realm where “pick” becomes “squash” and your past commits beg for mercy.

Pro tip: Never rebase a shared branch. Unless you like pain. Or have tenure.
7 days ago

No replys yet!

It seems that this publication does not yet have any comments. In order to respond to this publication from codingbitch , click on at the bottom under it