git 如何在 Egit/TortoiseGit 中查看 repo 的整个提交历史?

声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow 原文地址: http://stackoverflow.com/questions/5656249/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me): StackOverFlow

提示:将鼠标放在中文语句上可以显示对应的英文。显示中英文
时间:2020-09-19 05:20:54  来源:igfitidea点击:

Way to see the whole commit history of a repo in Egit/TortoiseGit?

eclipsegitversion-controltortoisegitegit

提问by devoured elysium

I'm looking for a way to see, though egit, to the whole history of my current git repo. From what it looks like, egit's "Show in History" will only show commits up to the current commit. With this I mean that if I do commit1 and commit2 and then decide to do checkout of the first, running "Show in History" of the project will not show up commit2.

我正在寻找一种方法来查看我当前 git 存储库的整个历史,尽管是 egit。从外观上看,egit 的“Show in History”只会显示到当前提交的提交。我的意思是,如果我执行 commit1 和 commit2,然后决定对第一个进行 checkout,则运行项目的“Show in History”将不会显示 commit2。

Is there any way that allows me to see the whole history of the repo? I guess that'll be somehting on the lines of the git log masterconsole command.

有什么方法可以让我看到回购的整个历史?我想这将与git log master控制台命令的行有关。

In other words, if you do checkout at any time your initial commit, how are you supposed to later be able to checkout the newer commits if your history won't show them?

换句话说,如果您在初始提交的任何时间进行检出,如果您的历史记录不显示它们,您以后如何能够检出较新的提交?

I've been checking out, and it seems TortoiseGit "suffers" from the same problem. Is it indeed a problem or is just me that's not doing thing as we're supposed to?

我一直在检查,似乎 TortoiseGit “遭受”了同样的问题。这确实是一个问题还是只是我没有按照我们应该做的那样做?

Thanks

谢谢

采纳答案by Adam Dymitruk

I would just open up gitk --alland look at the top. This will show you the entire history. I haven't worked with the other tools but if they don't have an --all switch, use gitk.

我只是打开gitk --all看看顶部。这将向您展示整个历史。我没有使用过其他工具,但如果它们没有 --all 开关,请使用 gitk。

Hope this helps.

希望这可以帮助。

回答by Till Sch?fer

There is actually a button Show all Branches and Tagsin the Eclipse history view to show all commits. See screenshot for more detail:

实际上有一个按钮Show all Branches and Tags在 Eclipse 历史视图中显示所有提交。详情见截图:

enter image description here

在此处输入图片说明

(It was already mentioned by L2G, but i did not had enough reputation to post a comment there.)

(L2G 已经提到过,但我没有足够的声誉在那里发表评论。)

回答by L2G

If you look at the toolbar under the History tab, there's a little icon of a path forking into two downward arrows. Its tooltip says "Show All Branches and Tags." I think that will do what you want.

如果您查看“历史记录”选项卡下的工具栏,会看到一个分叉成两个向下箭头的路径小图标。它的工具提示说“显示所有分支和标签”。我认为这会做你想做的。

回答by DaleD

I was having this problem too.

我也遇到了这个问题。

There is a 'Git Reflog' view available on the latest versions (eclipse Luna Service Release 1 [4.4.1] with eGit 3.5.1).

在最新版本(eclipse Luna Service Release 1 [4.4.1] 和 eGit 3.5.1)上有一个“Git Reflog”视图。

For background see: http://aniszczyk.org/2011/06/26/git-reflog-and-eclipse/

有关背景,请参阅:http: //aniszczyk.org/2011/06/26/git-reflog-and-eclipse/

回答by jlsecrest

I like to use the context menu when right clicking on the repo folder. Go to TortoiseGit -> Show Log

我喜欢在右键单击 repo 文件夹时使用上下文菜单。转到 TortoiseGit -> 显示日志