How to get commit history for just one branch?

前端 未结 6 1227
北荒
北荒 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条回答
  •  旧巷少年郎
    2020-12-23 13:45

    You can use a range to do that.

    git log master..
    

    If you've checked out your my_experiment branch. This will compare where master is at to HEAD (the tip of my_experiment).

提交回复
热议问题