git stash savebash-3.2$ git stash save
Saved working directory and index state WIP on testing: fb1f22c This is test commit commit-amended
HEAD is now at fb1f22c This is test commit
Viewing your stashed changes:
git stash listbash-3.2$ git stash list
stash@{0}: WIP on testing: fb1f22c This is test commit commit-amended
stash@{1}: WIP on testing: fb1f22c This is test commit commit-amended
Applying your stash :
git stash apply stash@{0}
OR
This applies latest stashed copy of your changes
git stash pop
Deleting Stash
- Delete Particular Stash:
git stash drop stashId
bash-3.2$ git stash drop stash@{0}
Dropped stash@{0} (3b88e6278d1bb2bcf600ff9a5dde50116361a200)
- Delete All Stashes:
git stash clear
No comments:
Post a Comment