写了好多东西,才发现分支是错的,又不可以提交,又需要保存修改的代码到其他分支时 1.保存修改 git stash 2.切换分支 git checkout develop 3.恢复暂存的修改 git stash apply