【问题标题】:How to see a remote branch, created with ADO, locally with a git command?如何使用 git 命令在本地查看使用 ADO 创建的远程分支?
【发布时间】:2021-08-15 21:18:05
【问题描述】:

我尝试了几个 git 命令,但我似乎无法看到我使用 azure devops 创建的远程分支。分支名称是pbi7642_task7917

git branch -av | Select-String task7917 ,在我的机器上,在 powershell 中,我没有看到新的分支。

【问题讨论】:

  • 你已经提取了吗?
  • 之后,是的。我做了一个git fetch --all 并且做到了。

标签: git powershell azure-devops


【解决方案1】:

git fetch --all 做了大部分的把戏。

随后 git checkout remotes/origin/pbi7642_task7917git switch -c pbi7642_task7917 让我继续前进。

类似的问题帮助了我Git: Merge a Remote branch locally

【讨论】:

  • 感谢您在这里分享您的解决方案,请accept your solution as the answer 好吗?因此,对于遇到相同问题的其他成员轻松找到解决方案将很有帮助。祝你有美好的一天:)
猜你喜欢
  • 2015-03-30
  • 2013-12-13
  • 2020-04-21
  • 2022-01-05
  • 2013-12-14
  • 2016-02-06
  • 2018-09-12
  • 1970-01-01
  • 1970-01-01
相关资源
最近更新 更多