Display the most recent commit of each branch in git

前端 未结 2 1815
滥情空心
滥情空心 2021-01-21 12:22

Is there a way to display the most recent commits of each branch in git?

I have a codebase in git that I\'ve set down for a while. There are several branches in it for d

相关标签:
2条回答
  • 2021-01-21 12:33

    git show <name_of_the_branch>

    will display the most recent commit for the branch <name_of_the_branch>

    0 讨论(0)
  • 2021-01-21 12:41
    git branch -v
    

    will display the (short form of) the most recent commit's SHA1 in its second column and the description after that.

    0 讨论(0)
提交回复
热议问题