首页 > 技术文章 > git 本地修改未提交时切换分支

ming-szu 2019-07-03 10:34 原文

1.缓存本地变更

git stash

2.切换分支

git checkout dev_B

3.提取本地变更

git stash apply

推荐阅读