Getting a list of commits along with the commit message and hash in Git

后端 未结 1 860
终归单人心
终归单人心 2021-02-01 02:53

I have a project in Git. What I want is a list of only the commit messages and the hashes between two commits and store it in a text file. Is there any command that does this ?

相关标签:
1条回答
  • 2021-02-01 03:12
    git log --pretty=oneline commit1...commit2 > file
    
    0 讨论(0)
提交回复
热议问题