[英]for git how to view all commits made in a repo?
I am trying to view all the commits I have ever made. 我正在尝试查看我所做的所有提交。 I am on one branch. 我在一个分支上。
i've tried git log --since=2.weeks
but that hasn't worked like the docs say it should. 我已经尝试过git log --since=2.weeks
但是没有像文档所说的那样工作。 A bit confused. 有点困惑。
Try this: 尝试这个:
git log --oneline //See all the commit
and 和
git log --oneline -n <how many line commit you see>
for example :
git log --oneline -n 5
there's a flag to list all commits: https://git-scm.com/docs/git-log#git-log---all 有一个列出所有提交的标志: https : //git-scm.com/docs/git-log#git-log---全部
git log --all
you probably want to use together with --oneline
flag 您可能想与--oneline
标志一起使用
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.