Commit e969f123 authored by Gerardo Gutierrez's avatar Gerardo Gutierrez Committed by Suzanne Selhorn

Revise Undo possibilities in Git all tiers

parent 7a6e4f24
...@@ -139,6 +139,12 @@ If you want to change to another branch, you can use [`git stash`](https://www.g ...@@ -139,6 +139,12 @@ If you want to change to another branch, you can use [`git stash`](https://www.g
1. Commit, push, and test. 1. Commit, push, and test.
1. Return to the branch where you want to resume your changes. 1. Return to the branch where you want to resume your changes.
1. Use `git stash list` to list all previously stashed commits. 1. Use `git stash list` to list all previously stashed commits.
```shell
stash@{0}: WIP on submit: 6ebd0e2... Update git-stash documentation
stash@{1}: On master: 9cc0589... Add git-stash
```
1. Run a version of `git stash`: 1. Run a version of `git stash`:
- Use `git stash pop` to redo previously stashed changes and remove them from stashed list. - Use `git stash pop` to redo previously stashed changes and remove them from stashed list.
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment