So I'm working on a project with some teammates and I have rebased on their changes, but is there a way to remove their commit (just locally - not planning to push it this way) and add it back at will?
** Edit: Clarification, I don't want to combine the commit with my commit, I just want to make it as if that commit has never happened (remove any changes from that commit, etc)
Commit A: Commit that both of us got out Commit B: His commit <- want to locally remove just this commit Commit C: My commit I had thought about making a branch and just sticking my commit on the branch and not pulling in his change onto that branch, but I was wondering if there was a cleaner way that wouldn't involve a separate branch?
Thanks in advance!