diff --git a/Git/git.md b/Git/git.md index d4220cb..f7b42d5 100644 --- a/Git/git.md +++ b/Git/git.md @@ -100,9 +100,6 @@ def load_reference(name_or_id): `git add `: add files to the staging area `git add -p `: interacively stage chuncks of a file -`git stash`: temporarily remove modifications to working directory (must be staged to be stashed) -`git stash pop`: recuperate stashed changes - `git blame `: show who last edited which line `git commit`: save the snapshot to the project history @@ -117,6 +114,15 @@ def load_reference(name_or_id): `git bisect`: binary search history (e.g. for regressions) +### Stashes + +`git stash [push -m|--message]`: add all changes to the stash (and provide message) +`git stash list` list all stashes +`git stash show []`: show changes in the stash +`git stash pop`: restore last stash +`git stash drop []`: remove a stash from the list +`git stash clear`: remove all stashes + ### Remotes `git remote`: list remotes