How to get commit history for just one branch?

前端 未结 6 1234
北荒
北荒 2020-12-23 12:56

Let\'s say I created a new branch my_experiment from master and made several commits to my_experiment. If I do a git log

6条回答
  •  猫巷女王i
    2020-12-23 13:29

    I think an option for your purposes is git log --online --decorate. This lets you know the checked commit, and the top commits for each branch that you have in your story line. By doing this, you have a nice view on the structure of your repo and the commits associated to a specific branch. I think reading this might help.

提交回复
热议问题