简体   繁体   English

对于git如何查看仓库中的所有提交?

[英]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.

相关问题 Git 如何在一行中查看 repo 的前 8 个提交? - Git how to view first 8 commits of a repo in one line? 如何在 Git 存储库中为所有提交移动目录? - How can I move a directory in a Git repo for all commits? Git 如何恢复到某个提交,但保留我所做的所有提交 - Git how to revert to a certain commit, but keep all the commits I made Github是否会在该回购协议的整个生命周期内存储对该回购协议所做的所有提交? - Does Github store all commits made to the repo for the life of that repo? Jenkins:当对git repo进行某些提交时,如何防止构建? - Jenkins: how do I prevent a build when certain commits made to a git repo? 递归地更改GIT存储库中所有提交的时间戳 - Recursively change the timestamps on all commits of a GIT repo 如何查看回购的先前提交? - How to view the previous commits of a repo? 如何搜索Git存储库中曾经进行的所有更改? - How to search through all changes ever made in the Git repo? 是否可以添加将svn repo转换为git之后进行的svn提交? - Is it possible to add svn commits made after the svn repo was converted to git? 如何将我在一个 Git 存储库中所做的所有更改合并到另一个存储库中? - How to incorporate all changes I have made in one Git repo to another repo?
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM