2021年5月14日 星期五

Git - how to find first commit of specific branch

 git log master..branch --oneline | tail -1

Where "branch" is your specific branch name. The dot-dot gives you all of the commits that the branch has that master doesn't have. tail -1 returns the last line from the previous output.


from : https://stackoverflow.com/questions/18407526/git-how-to-find-first-commit-of-specific-branch