简体   繁体   中英

getting commit messages with log between specific revision range GIT

I`m not familiar with Git and I have a problem with it.

In SVN, I can use svn log HEAD:100 to get log messages between the HEAD revision and the 100th revision.

Is there something similar in Git so that I can get the log messages for a specific range?

You have more than one way to do this. Please read the manual page (7) for gitrevisions.

man 7 gitrevisions

For your example above you can use this command:

git log HEAD~100..HEAD

If you need all commits between two revisions you need between the two revisions three dots.

git log Rev1...Rev2

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM