mengyu

Pycharm 切换Git 远程分支

1.git 仓库新建远程分支以后,pycharm 本地没有办法查看到对应的分支,需要切换到本地代码的git所在的目录执行下"git remote update origin --prune”

(venv) D:\workspace\autotestfintech\fintech\TestCases>git remote update origin --prune
Fetching origin
RSA host key for IP address \'172.2.3.250\' not in list of known hosts.
From ssh://code.bkjk.com/ip/autotestfintech
 * [new branch]      test       -> origin/test

2.Pycharm 右下角的位置选择“Git”,然后选择Remote Branches 你要切换到的分支即可

 

 

 

3.选择对应分支Checkout即可,

 

 

 此时我们就在Pycharm 完成了分支的切换工作了

 

分类:

技术点:

相关文章:

  • 2021-10-20
  • 2022-01-11
  • 2022-01-31
  • 2022-03-04
  • 2021-09-04
猜你喜欢
  • 2022-01-08
  • 2022-02-11
  • 2022-12-23
  • 2022-02-28
  • 2021-05-19
相关资源
相似解决方案