Thank you for this tutorial. I'm new to squashing, so want to make sure I understand it before I try it. After the rebase command, the system replies with a list of affected commits, followed by this message:
Rebase 7654633..f592171 onto f592171 (4 commands)
I'm confused because commit "7654633-Add feature 1" is not actually included in the list. So why is it included in the bounds?
Hey, I cannot give you a good resource right now, but I'm pretty sure it's that way because the commit ranges exclude the first commit. So in the range specified by A...B, commit A is not actually considered, it considers commits after A, till B ; where B is inclusive. You can check git-revert or git-rebase man pages, which contains links for git commit ranges explanation. I'll also try to add link in another comment if I find any good explanation. Hope this helps.
For further actions, you may consider blocking this person and/or reporting abuse
We're a place where coders share, stay up-to-date and grow their careers.
Thank you for this tutorial. I'm new to squashing, so want to make sure I understand it before I try it. After the rebase command, the system replies with a list of affected commits, followed by this message:
I'm confused because commit "7654633-Add feature 1" is not actually included in the list. So why is it included in the bounds?
Thanks.
Hey, I cannot give you a good resource right now, but I'm pretty sure it's that way because the commit ranges exclude the first commit. So in the range specified by A...B, commit A is not actually considered, it considers commits after A, till B ; where B is inclusive. You can check git-revert or git-rebase man pages, which contains links for git commit ranges explanation. I'll also try to add link in another comment if I find any good explanation. Hope this helps.