3 ms·
--amend is conceptually nothing else than interactive rebase to squash the last two commits together.
by seba_dos1 4y ago
--amend is conceptually nothing else than interactive rebase to squash the last two commits together.
- Dylan16807 4y agoConceptually that's not really a rebase, because you're using the same base. If you never push the original commit, --amend is the same as staging things repeatedly for safety but only hitting the "commit" button later in the day.
- seba_dos1 4y agoHa, "conceptually" is perhaps a wrong word. What I meant is that you end up doing the exact same operation, just via a shortcut in the UI. It's the exact same operation I use interactive rebase for most often in my everyday work, just limited to a single commit (HEAD).