You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Helped out by this [StackOverflow](https://stackoverflow.com/a/49559472) and the [`git stash docs`](https://git-scm.com/docs/git-stash#Documentation/git-stash.txt-push-p--patch-k--no-keep-index-u--include-untracked-a--all-q--quiet-m--messageltmessagegt--ltpathspecgt82308203)
6
+
7
+
## Name the code in your `git stash`
8
+
9
+
`git stash push -m "message"`
10
+
11
+
## See your stashes
12
+
13
+
`git stash list`
14
+
15
+
This command will output something like:
16
+
17
+
```
18
+
stash@{0}: On develop: perf-spike
19
+
stash@{1}: On develop: node v10
20
+
```
21
+
22
+
## Apply a stash
23
+
24
+
`git stash apply {n}`
25
+
26
+
Where `n` corresponds to the integer in `stash@{n}` from your `git stash list` output.
0 commit comments