For example:
Person A is working in the X branch.
Person B is working in the Y branch.
Person C pulled the codes from Person B's branch by rebasing and git fetch.
Because it wasn't doing the fast-forwarding.
Now the problem is whenever Person A and Person B commit and push their codes into their branches and in GitHub, it shows that it pushed into that Person C's branch.
Can anyone please explain why it's happening?