Home > Back-end >  git log: what is meaning of commit ... → (origin/branch_name) ←
git log: what is meaning of commit ... → (origin/branch_name) ←

Time:03-17

I have this output when run git log

commit 9211...11c39 (HEAD -> branchname1, origin/branchname1, origin/HEAD)
Merge: 2...d f...a
Author: UserName <[email protected]>
Date:   Thu Mar 17 02:11:14 2022  0900

    Merge pull request #111 from org/feature_branch

    Blah blah blah

commit 3211...11f34 (origin/feature_branch)
Author: UserName <[email protected]>
Date:   Thu Mar 17 02:05:43 2022  0900

    bug fix

commit 3ad1...1aed4
Merge: 50...bc 0a...88
Author: UserName <[email protected]>
Date:   Wed Mar 16 03:26:17 2022  0900

    Merge pull request #110 from org/feature_branch

    blah blah blah 

commit a3ee...3a5b6 (origin/feature_branch)
Author: UserName <[email protected]>
Date:   Thu Mar 3 14:25:00 2022  0900

    bug fix

Some of commits has only commit ID: commit 3ad1...1aed4, but some of commits has a (origin/feature_branch) addition.

What is meaning of (origin/feature_branch) addition?

That was not my commits so I don't understand clearly what actions was did here and why commits are different.

CodePudding user response:

It's showing you that the tips of those other branches are also at that commit.

Imagine that you're on master, and then you create three new branches at that location (but you don't add any commits). You'll have 4 branches whose tips are all at the same commit.

  •  Tags:  
  • git
  • Related