Parcourir la source

Add git stash tips

DricomDragon il y a 5 ans
Parent
commit
c00bfdde0d
1 fichiers modifiés avec 6 ajouts et 0 suppressions
  1. 6 0
      Guides/git.md

+ 6 - 0
Guides/git.md

@@ -32,6 +32,12 @@ You can replace `--global` by `--local` to configure a specific project.
 
 `git rm --cached <file>` remove a file from git but keep this file on drive
 
+### Stashing
+
+`git stash -u -m 'Experiment optimized code`
+
+`-u` is used to stash _untracked files_
+
 ### Diff tool
 
 `git difftool` use a tool like _vimdiff_