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

1.缓存本地变更

git stash

2.切换分支

git checkout dev_B

3.提取本地变更

git stash apply

posted @ 2019-07-03 10:34  逃跑旅馆  阅读(4420)  评论(1编辑  收藏  举报