Where is “remote tracking branch” in TortoiseGit?

让人想犯罪 __ 提交于 2021-02-07 16:05:10

问题


How to find "remote tracking branch" in TortoiseGit to set default branch to pull from?

Description image


回答1:


Open the "Browse Refs" dialog (cf. https://tortoisegit.org/docs/tortoisegit/tgit-dug-browse-ref.html). There you can see all local branches and the corresponding remote-tracking branches (you can change the remote-tracking branch using the context menu).

https://tortoisegit.org/docs/tortoisegit/images/BrowseRef.png

On the pull and fetch dialog, the currently set remote tracked branch should be selected automatically (based on the current local branch) - or the last used remote branch is preselected.

PS: In order to automatically set it up on push, just enable "Set upstream/track remote branch" on the push dialog.

PSS: On the push dialog, there are some TGit specific options, that allow you to have an remote tracked branch (e.g., master from upstream), but store another default where you push to (e.g., master from origin; cf. https://tortoisegit.org/docs/tortoisegit/tgit-dug-push.html).



来源:https://stackoverflow.com/questions/49516580/where-is-remote-tracking-branch-in-tortoisegit

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!