git TortoiseGit:如何查看即将推送的提交列表
声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow
原文地址: http://stackoverflow.com/questions/12181054/
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
TortoiseGit: How can I see a list of commits that are about to be pushed
提问by farjam
I have merged in some commits from different branches into my "develop" branch and I'm now ready to push them to the remote branch.
我已经将来自不同分支的一些提交合并到我的“开发”分支中,我现在准备将它们推送到远程分支。
In TortoiseGit, is it possible to view a list of items that are about to be pushed?
在 TortoiseGit 中,是否可以查看即将推送的项目列表?
"Check for Modifications"
is not showing me anything, as the changes are coming from branches.
"Check for Modifications"
没有向我展示任何东西,因为这些变化来自分支机构。
"Show Log"
is also showing me a chronological list of all changes. I rather just see a simple list of items that are queued to be pushed.
"Show Log"
还向我展示了所有更改的时间顺序列表。我宁愿只看到排队等待推送的项目的简单列表。
I hope I'm making sense.
我希望我说得有道理。
回答by linquize
Use "Sync Dialog" Right click the repository folder, choose "Sync"
使用“同步对话框”右键单击存储库文件夹,选择“同步”
In "Out commits" tab, you will see a list of commits to be pushed to the remote.
在“Out commits”选项卡中,您将看到要推送到远程的提交列表。
Switch to "Out ChangeList" tab, you will see a list of changed files relative to the remote version.
切换到“Out ChangeList”选项卡,您将看到与远程版本相关的已更改文件列表。
If "Out commits" is empty or "Out ChangeList" tab does not appear, specify "remote branch" explicitly in the combo box. Then "Out commits" list will load and "Out ChangeList" tab will appear. This may happen if current branch does not have a "remote-tracking branch".
如果“Out commits”为空或“Out ChangeList”选项卡未出现,请在组合框中明确指定“远程分支”。然后将加载“Out commits”列表并出现“Out ChangeList”选项卡。如果当前分支没有“远程跟踪分支”,则可能会发生这种情况。
"Pull Dialog" has no such info.
“拉对话框”没有这样的信息。
回答by Paul Irofti
I don't know if you have a way to specify this in TortoiseGit, but I think a command similar to this is what you want:
我不知道你是否有办法在 TortoiseGit 中指定它,但我认为类似于下面的命令是你想要的:
$ git log origin/master..master