如何使用TortoiseGit查看远程更改 [英] How to view remote changes with TortoiseGit

查看:230
本文介绍了如何使用TortoiseGit查看远程更改的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我无法弄清楚如何使用TortoiseGit查看远程更改.

I cannot figure out how to view remote changes with TortoiseGit.

有人将一些代码推送到服务器.我想在进行git pull之前先查看更改.如何使用TortoiseGit查看远程更改?

Someone pushed some code to the server. I would like to see the changes before i do a git pull. How can i see the remote changes with TortoiseGit?

我尝试了获取"命令,但是在获取后执行显示日志"时,它不会显示远程更改.

I tried the "fetch" command, but when I do a "Show log" after fetching, it does not show the remote changes.

推荐答案

获取"是检索所有远程更改而不集成/合并的正确命令.

"Fetch" was the correct command to retrieve all remote changes without integrating/merging them.

点击所有分支"在日志对话框的左下方显示所有分支(也包括远程分支).或单击左上角的分支标签,然后在日志对话框中选择要查看的分支.

Click on "All branches" on the lower left on the log dialog to show all branches (also the remote ones). Or click on the branch label in the upper left and then select the branch(es) you want to see in the log dialog.

通常,有几种方法可以查看遥控器上的更改.

In general, there are several ways to see what changed on the remote.

首先,当您进行常规提取时,只会更新本地远程跟踪分支,而不是您正在处理的本地分支.提取之后,您可以打开日志,将本地分支与现在更新的远程跟踪分支进行比较.

First, when you do a normal fetch only the local remote tracking branches are updated and not you local branch you are working on. After the fetch you can open the log an compare your local branch to the now updated remote tracking branch.

也许更简单:其次,您可以使用同步"对话框.在成功获取之后,存在新的标签参考列表".在这里,您可以查看哪些远程跟踪分支已更改(例如,更改类型快进).然后,您可以在条目上打开请求差异的上下文菜单.

Maybe a bit more easy: Second, you can use the Sync dialog. After a successful fetch, there is the new tab "Ref list". There you can see what remote tracking branches have changed (e.g. changetype fast forward). Then you can open the context menu on an entry a request a diff.

第三,当您在分支上并且还想直接集成更改时,只需拉远程分支即可.拉取后,您可以通过选择已拉日志"来查看更改.和"Pulled diff"在左下方的菜单上.

Third, when you are on the branch and you also want to directly integrate the changes, just pull the remote branch. After the pull, you can see the changes by selecting "Pulled logs" and "Pulled diff" on the menu on the lower left.

第四,您还可以使用 RefLog 比较两个提取后本地远程跟踪分支的状态.

Fourth, you can also use the RefLog to compare two states of the local remote tracking branch after a fetch.

这篇关于如何使用TortoiseGit查看远程更改的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆