3 ms·
You can make as many commits as you need on your feature branch. When you're done with the feature, you do `git pull --rebase origin master` (or whatever the ma
by finishingmove 11y ago
You can make as many commits as you need on your feature branch. When you're done with the feature, you do `git pull --rebase origin master` (or whatever the main branch is) and squash your commits into one (or a few -- when it makes sense) using `git rebase -i`.
- icebraining 11y agoI know the workflow of rebasing a feature branch into one commit on master, but that doesn't sound like what Pyxl101 was talking about, regarding the use of "git commit --amend" and "git commit --fixup".
- Bahamut 11y agoBetter to squash before the rebase so you resolve conflicts once rather than x times...and hope there are no nasty merge commits to ruin the history.