git rebase: what can go wrong?
Hello! While talking with folks about Git, I’ve been seeing a comment over and over to the effect of “I hate rebase”. People seemed to feel pretty strongly about this, and I was really surprised because I don’t run into a lot of problems with rebase and I use it all the time. I’ve found that if many people have a very strong opinion that’s different from mine, usually it’s because they have different experiences around that thing from me. So I asked on Mastodon: today I’m thinking about the tradeoffs of using git rebase a bit. I think the goal of rebase is to have a nice linear commit history, which is something I like. but what are the costs of using rebase? what problems has it caused for you in practice? I’m really only interested in specific bad experiences you’ve had here – not opinions or general statements like “rewriting history is bad” I got a huge number of incredible answers to this, and I’m going to do my best to summarize them here. I’ll also mention solutions or workaroun
Hello! While talking with folks about Git, I've been seeing a comment over and over to the effect of "I hate rebase". People seemed to feel pretty strongly about this, and I was really surprised because I don't run into a lot of problems with rebase and I use it all the time. I've found that if many people have a very strong opinion that's different from mine, usually it's because they have different experiences around that thing from me. So I asked on Mastodon : today I'm thinking about the tradeoffs of using git rebase a bit. I think the goal of rebase is to have a nice linear commit history
Explore this link on the map →related reading
- Merging vs. Rebasing | Atlassian Git Tutorialatlassian.com
- Git rebase --onto squashed branch - Stack Overflowstackoverflow.com
- Oh Shit, Git!?!ohshitgit.com
- How Git works: A complete guide to branches, merges, and collaborationdeveloper.ibm.com
- Git - user-manual Documentationgit-scm.com
- A successful Git branching model >> nvie.comnvie.com
- How I Use Git Worktreesmatklad.github.io
- Git Can't Be Made Consistent: bramcohen — LiveJournalbramcohen.livejournal.com
- How Core Git Developers Configure Git | Butler's Logblog.gitbutler.com
- A Bunch of Programming Advice I'd Give To Myself 15 Years Ago | Marcus' Blogmbuffett.com
- Featuresgraphite.dev
- Conventional Commitsconventionalcommits.org