git 本地修改未提交时切换分支

1.缓存本地变更

git stash

2.切换分支

git checkout dev_B

3.提取本地变更

git stash apply

原文地址:https://www.cnblogs.com/ming-szu/p/11124919.html