简体   繁体   中英

Git Log - merges since last week

If I run this script:

git log --since="since last week" I get all commits from last week to now. 

and if I run

git log --merges

I get only merges from forever:(

but this returns nil

git log --merges --since="since last week"

How should I format this to log only merges from last week?

'm on master and I know there are merges (I've made them)

Considering git log --merges only prints commits with at least 2 parents, that means it will print merge commits done on master .

But if have merged master to other branches, those merge commits won't be listed by a git log --merges done on master .

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