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 完成了分支的切換工作了

 


免責聲明!

本站轉載的文章為個人學習借鑒使用,本站對版權不負任何法律責任。如果侵犯了您的隱私權益,請聯系本站郵箱yoyou2525@163.com刪除。



 
粵ICP備18138465號   © 2018-2025 CODEPRJ.COM