IDEA/WebStorm 切换分支(超简单)

IDEA/WebStorm 切换分支

  • 1、git命令方式切换分支
    • [1.1、 切换至本地已`存在`的分支A](#1.1、 切换至本地已存在的分支A)
    • [1.2、 切换至本地`不存在`的新分支A](#1.2、 切换至本地不存在的新分支A)
  • [2、idea/webstorm 右键项目 切换分支](#2、idea/webstorm 右键项目 切换分支)
  • [3、idea/webstorm 右下角状态栏 切换分支](#3、idea/webstorm 右下角状态栏 切换分支)

1、git命令方式切换分支

1.1、 切换至本地已存在的分支A

bash 复制代码
git checkout A

1.2、 切换至本地不存在的新分支A

  • -b表示创建并切换分支
bash 复制代码
git checkout -b A

2、idea/webstorm 右键项目 切换分支

bash 复制代码
右键项目 -> Git -> Branches -> 选择要切换的分支 -> Checkout

3、idea/webstorm 右下角状态栏 切换分支

bash 复制代码
idea/webstorm编译器 右下角状态栏 -> 点击当前分支 ->  选择要切换的分支 -> Checkout
相关推荐
Geek-Chow1 天前
Git 标签与发布流程:轻量标签、附注标签与签名标签
git·tags
wear工程师1 天前
Git 冲突怎么解决:别只删标记,先看懂暂存区的 1、2、3 阶段
git
村雨遥1 天前
覆盖提交不等于删除,这才是彻底清除 Git 历史的正确姿势
git·github
淮北4941 天前
ubuntu22 默认输入法调整频率
运维·服务器·git·ubuntu·elasticsearch
momo_aa1 天前
小白下载git步骤
git
dunge20262 天前
2026 ChatGPT Plus / Pro + Codex 实战:从 0 搭一套 AI 编程项目模板,AGENTS.md + Git + 测试一次配好
人工智能·git·chatgpt
浪客川2 天前
使用 IDEA 生成API文档
java·ide·intellij-idea
福如意如我心意2 天前
git清除仓库敏感文件并同步至远端的操作
git
Brilliantwxx2 天前
【Linux】 开发|Git 版本控制与 gdb/cgdb 调试
linux·笔记·git
.Hypocritical.3 天前
Git 全套实操|配置 /.gitignore/ 分支合并 / 冲突解决 /git stash 完整教程
git