pycharm中怎么切换Git远程分支?

Posted

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了pycharm中怎么切换Git远程分支?相关的知识,希望对你有一定的参考价值。

参考技术A

pycharm中切换Git远程分支的方法:

1.git 仓库新建远程分支以后,pycharm 本地没有办法查看到对应的分支,

需要切换到本地代码的git所在的目录执行下"git remote update origin --prune”;

(venv) D:workspaceautotestfintechfintechTestCases>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即可;

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

更多Python知识,请关注Python视频教程!!

以上是关于pycharm中怎么切换Git远程分支?的主要内容,如果未能解决你的问题,请参考以下文章

git 切换远程分支

pycharm切换git为terminal

android studio 怎么切换git分支

git 强制推送到master

利用PyCharm操作Github:分支新建切换合并删除

怎么用git命令创建远程仓库分支