git之保存当前工作状态

下面介绍一下git保存工作状态常用命令

1)保存当前的工作线程

git stash

2)查看当前分支保存列表

git stash list

3)恢复stash保存内容但并不删除保存内容,如果删除需要用git stash drop来删除

git stash apply

4)恢复stash保存内容,并把stash内容也删了

git stash pop

猜你喜欢

转载自blog.csdn.net/qq_32403063/article/details/88642666
今日推荐