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 ?
git log --pretty=oneline commit1...commit2 > file