What does the parenthesis after each commit of git log mean?

clipboard.png

0b7b964 (HEAD -> master, origin/master, origin/dev, origin/HEAD, dev) msg5 in dev
a3f9fb8 msg4 in dev
ac877f7 msg2 in master
9c8c1d2 msg1 in master
126e2ef dev msg3
1c3919f dev msg2
9adb203 dev msg1
f911a15 Initial commit

the content of dev is submitted in the dev branch, and the content of master is submitted in master.
then perform git rebase master
in dev and then switch to master to execute git merge dev,. The final log is shown in the figure above. What does the parenthesized content in the first line commit represent?
all I know is that HEAD- > master indicates that the current branch is master

another question is how does, git log show in which branch the commit was submitted?

Git
Apr.19,2021

take a look at it and get a general idea. The orange part indicates remote existence, master, dev branch and HEAD reference, and the green part indicates that the local branch has master and dev,HEAD pointing to master, indicating that the local branch is currently in the master branch.

Menu