[英]How to view the new GIT branch from remote server in visual studio?
我正在使用 Visual Studio 2017 和 GIT。
我可以連接到 GIT 項目,分支並拉取代碼。
但是當在遠程服務器上創建一個新分支時,它在 Visual Studio 分支部分是看不到的。
如何在 Visual Studio 中從遠程服務器查看新的 GIT 分支?
Team Explorer 視圖( 您可以在此處查看)應該向您顯示remotes/origin
下的那些分支。
但是您需要先獲取,然后才能在該部分中看到它們。
(圖片來自“ Git Fetch Upstream en Visual Studio 2017 ”)
(這是上游的示例,但在您的情況下, select origin
)
這假設您的本地存儲庫使用默認的 refpect
[remote "origin"]
url = https://github.com/schacon/simplegit-progit
fetch = +refs/heads/*:refs/remotes/origin/*
這將獲取所有分支,包括遠程存儲庫中新創建的分支。
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.