Programing

Visual Studio 온라인의 원격 분기가 Visual Studio 2015 팀 탐색기에 나타나지 않습니다.

lottogame 2020. 8. 17. 09:28
반응형

Visual Studio 온라인의 원격 분기가 Visual Studio 2015 팀 탐색기에 나타나지 않습니다.


Visual Studio에서 온라인으로 새 Git 리포지토리를 만들었습니다. 내 컴퓨터에 복제했고 프로젝트에 추가했습니다. 그 후 Visual Studio에서 온라인으로 개발이라는 새 분기를 만들었고 새 로컬 분기를 만들려고 시도했지만 팀 탐색기에 나타나지 않습니다.

이것은 내 Visual Studio 온라인입니다. 여기에 이미지 설명 입력

그리고 이것은 Visual Studio 2015 팀 탐색기입니다. 여기에 이미지 설명 입력

팀 탐색기에 개발 분기가 표시되지 않는 이유는 무엇입니까?


이제 Visual Studio에서 동기화 탭 (팀 드롭 다운 메뉴의 동기화)으로 이동하고 상단의 가져 오기를 클릭하여이 작업을 수행 할 수 있습니다 .

메뉴에서 동기화를 선택하고 가져 오기를 누릅니다.


I have solved my problem opening a Git Command Prompt (following this instructions), and doing a git fetch to retrieve the new branch.


I had the exact opposite issue (more or less): I could see the branch in Visual Studio, but it wasn't on the remote server.

Trying to delete it (from remote) yielded this error:

Error encountered while pushing to the remote repository: Git failed with a fatal error. PushCommand.ExecutePushCommand

Here's how to fix it (tested in VS 2017):

  1. In Visual Studio, double click on your "rogue" remote branch;
  2. VS should have now created a local branch from it;
  3. Right click on the local branch, select "Unset remote branch";
  4. Right click on the local branch, select "Push branch";
  5. 이제 실제 해당 원격 분기 가 있어야합니다 .
  6. 원격 분기를 삭제 한 다음 로컬 분기를 삭제하십시오.

이 스레드에서 나와 같은 문제가있는 사람에게 도움이되기를 바랍니다.

참고 URL : https://stackoverflow.com/questions/32101635/remote-branch-on-visual-studio-online-doesnt-appear-on-visual-studio-2015-team

반응형