
保存stash
1 |
git stash save "stash comment" # stash保存后,用[email protected]{数字}来引用。 |
查看stash
1 2 3 |
git stash list git stash show [email protected]{0} stash的修改统计 git stash show -p [email protected]{0} 加-p参数表示显示出patch/diff的内容 |
恢复某个stash
1 2 |
git stash apply [email protected]{0} git stash pop [email protected]{0} # 和apply不同的是,stash 被pop后就删除了。 |
删除某个stash
1 |
git stash drop [email protected]{0} |
删除所有stash
1 |
git stash clear |




近期评论