Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to see a merge history?

Tags:

git

merge

I'm using git but I'm not an expert with it.

I inherited a legacy project and it follows git flow (and I like it): each new feature in a feature/name branch. But when new features were merged into develop main branch they were not erased from origin. So that now in origin I see a lot of branches and I don't know which one are old one or which are working-progress.

Is there a way to have an history of the merges done between feature branches and the develop?

EDIT: I'm on a linux machine

like image 400
nkint Avatar asked Nov 19 '15 11:11

nkint


People also ask

How do I see merge history in GitHub?

Click History. On the History tab, click the commit you'd like to review. If there are multiple files in the commit, click on an individual file to see the changes made to that file in that commit.

Which command is used to display merge history?

Use the p4 integrated and p4 filelog to display merge history.

Does git merge keep history?

Merging. When you run git merge , your HEAD branch will generate a new commit, preserving the ancestry of each commit history.

How do I see merge history in BitBucket?

Show activity on this post. The BitBucket server copies the entire commit history. It makes confusion on the commit history view in BitBucket User Interface. If you see the commit history in the screen BitBucket UI view, It brings the merge commit history with timestamp instead of actual merge commit timestamp.


1 Answers

To get a history of merge commits made in the current branch, use the following command:

git log --merges
like image 108
mkrufky Avatar answered Sep 19 '22 10:09

mkrufky