While we would like to switch our job to other branch and save current codes immediatly
Use reset
$ git add --all |
$ git reset HEAD^ –hard
|
$ git stash
|
-
List stash
$ git stash list
-
POP the stash (Which will remove the stash after apply it on the same branch)
$ git stash pop [email protected]{1}
-
Apply the stash(Which will not remove the stash after apply it)
$ git stash apply [email protected]{1}
If the specified name of stash is not given, the latest stash will be applied
- Remove stash
$ git stash drop [email protected]{1}
近期评论