在本地的代码,使用git stash命令就可以暂存起来,暂存后就可以切换分支了
更改完其他分支的内容后,运行
git stash list可以查看有哪些暂存的内容
git stash apply可以应用暂存的内容,但是不会删除暂存记录
git stash pop可以应用暂存内容并删除最近一条暂存记录
在本地的代码,使用git stash命令就可以暂存起来,暂存后就可以切换分支了
更改完其他分支的内容后,运行
git stash list可以查看有哪些暂存的内容
git stash apply可以应用暂存的内容,但是不会删除暂存记录
git stash pop可以应用暂存内容并删除最近一条暂存记录