serhii.net

In the middle of the desert you can say anything you want

30 Nov 2021

211130-1751 git rebase on branch vs origin-branch + git fetch

Had issues, asked for help, and then learned a lot of stuff.

git rebase branchname != git rebase origin/branchname!

The first one is about the current local state of the branch, the second one about the one on remote.

BUT the one on remote as known by local != one on remote-remote! You need to update first!

git fetch --all or whatever.

I’d previouly update / pull before through PyCharm before doing that, and this abstracted all of this away from me.

Nel mezzo del deserto posso dire tutto quello che voglio.