| pop | 恢复并出栈 |
|---|---|
| apply | 恢复并保留栈记录 |
| 其他 | list 列表;show 内容;drop 删单条;clear 清空 |
常用示例
常用示例
git stash list
git stash pop
git stash apply stash@{2}
git stash drop stash@{0}
git stash clearclear 会一次清空全部记录,执行前先 list 与 show 确认没有需要保留的现场。
取回现场:pop 恢复后把记录从栈中删除,apply 恢复但保留副本;list/show 查看,drop/clear 删除记录。
| pop | 恢复并出栈 |
|---|---|
| apply | 恢复并保留栈记录 |
| 其他 | list 列表;show 内容;drop 删单条;clear 清空 |
git stash list
git stash pop
git stash apply stash@{2}
git stash drop stash@{0}
git stash clear