Last active
December 26, 2015 07:19
Revisions
-
antespi revised this gist
Jul 26, 2015 . 1 changed file with 9 additions and 6 deletions.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -6,28 +6,31 @@ git stash save --keep-index ``` Discard stash ------------- ``` git stash drop ``` Apply stash ----------- ``` git stash pop ``` Discard changes =============== One file -------- ``` git checkout path/to/file/to/revert ``` All files --------- ``` git checkout -- . -
antespi revised this gist
Jul 26, 2015 . 1 changed file with 15 additions and 5 deletions.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -1,25 +1,35 @@ Save changes to stash ===================== ``` git stash save --keep-index ``` Discard stash ============= ``` git stash drop ``` Apply stash =========== ``` git stash pop ``` Discard changes done only in one file ===================================== ``` git checkout path/to/file/to/revert ``` Discard changes done in all files ================================= ``` git checkout -- . ``` -
antespi renamed this gist
Jul 26, 2015 . 1 changed file with 5 additions and 0 deletions.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -8,6 +8,11 @@ Discard stash # git stash drop Apply stash =========== # git stash pop Discard changes done only in one file ===================================== -
antespi created this gist
Oct 23, 2013 .There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,20 @@ Save changes to stash ===================== # git stash save --keep-index Discard stash ============= # git stash drop Discard changes done only in one file ===================================== # git checkout path/to/file/to/revert Discard changes done in all files ================================= # git checkout -- .