show commits since branch creation

后端 未结 7 880
伪装坚强ぢ
伪装坚强ぢ 2020-12-12 17:44

Is there a way to see with git log or some other command only the commits that were added after branch creation?

usage: git log [         


        
7条回答
  •  爱一瞬间的悲伤
    2020-12-12 18:34

    I get often into the mode of oh, dear God, what have I done. Specifically, the haunting fear regards the latest changes in the current branch. It's nice to see the blame game of commits, which I do as follows. (Assuming you're in the current branch of interest and have branched it out from dev.)

    git log --oneline dev..

    It gives me the list of commits I've done to track back to the place where mayhem, sodom and gomorra aren't the reality. Also, it helps if you commit obsessively like a ADHD monkey on LSD. Once I've got my bearings list, I can narrow it down and analyse as documented in this article - there's a section on limiting the output at the bottom.

提交回复
热议问题