git stash
kingcwt2023-08-08前端git
- 查看stash列表
git stash list
- 提交到stash list并添加描述信息
git stash save "描述"
- 拉取指定的内容并保留这条list
git stash list
stash@{0}: On feature_2023_08_08: md1
stash@{1}: On main: del
stash@{2}: On main: del
stash@{3}: On main: ;
stash@{4}: On main: —
stash@{5}: On main: blog2
git stash apply stash@{0}
- 拉取指定的内容并删除这条list
git stash list
stash@{0}: On feature_2023_08_08: md1
stash@{1}: On main: del
stash@{2}: On main: del
stash@{3}: On main: ;
stash@{4}: On main: —
stash@{5}: On main: blog2
git stash pop stash@{0}
- 不拉取任何内容 删除 stash list某一条记录
git stash list
stash@{0}: On feature_2023_08_08: md1
stash@{1}: On main: del
stash@{2}: On main: del
stash@{3}: On main: ;
stash@{4}: On main: —
stash@{5}: On main: blog2
git stash drop stash@{0}