all 2 comments

sorted by: hot top controversial new old
[–] 5 points 9 months ago* (last edited 9 months ago)

I was prepared to use my Cunningham Law mental model to correct your article, but no. I have nothing to say 😊

I've seen way too many wrong usage of git merge/rebase in lots of article but you get the point and clearly explained it.

Maybe just at the end, instead of

git checkout main
git pull
git checkout feature-branch
git rebase main

I would just do:

git fetch
git rebase origin/main

This avoid checkout main and checkout back to working branch, which may takes times on big repos.

  • source
  • [–] 2 points 9 months ago

    This is just straight up "ChatGPT write me an article about merge vs rebase".

    It's also missing any discussion of squashing, CI, git blame, git bisect etc.

  • source