git - Seeing commits of another branch -


i have access repository on git not "master" branch. make branch "paul_project" , when on branch: create branch under it.

admin@paul~/watirproject/automationproject (paul_project) $ git checkout -b feature_one 

which looks this:

master   paul_project      feature_one 

similarly people me, making branches on top of "paul_project" don't have access "master". looks this

master   paul_project      feature_one      feature_two      feature_three 

now problems while raising pr (pull request) seeing each other's commits too. , because of that, person going review pr having problem in reading commits, because on reading commits looks "feature_two" has more commits in suppose have, shows commits of "feature_one" also.

what doing wrong?

you can git rebase after each git pull or git fetch/git merge.

it allow git rewind history and, in case of conflicts, allow fix them. branch should clean of duplicated commits after that.