In Git, can I see all commits from branch merges?

I am working on a project and I see that some merges are being made by another developer. For some reason, he daily merged an incomplete thread into our workshop. I want to see all the commits from his topic branch, but I can’t just check it because it has never been clicked on a remote repo. So, what I want to know, can I somehow view all the commits that entered the master branch during its merges?

+3
source share
2 answers

You cannot see the history of fixing your personal branch, since it is not part of its merger.

Update: This is actually not quite the way I just saw in a small test. Could you tell us more about how exactly he combined his changes into your branch without showing his own commits from his branch?

Sorry for the confusion.

From the original answer: You can use git logwith --mergesand parameters --author=<pattern>to filter out all the merges performed by this particular author. Then you can happily uncover those commits. That way, you could at least find all the changes that he made with his mergers in one place.

0
source

If its local branch still exists, you can add your repository as remote to yourself and view its history.

git remote add coworker /some/path/repo.git
git fetch coworker
git log master coworker/featureX

git , /featureX.

0

Source: https://habr.com/ru/post/1763818/


All Articles