Last active
October 15, 2020 16:46
-
-
Save bitliner/5332eb12762925b23ae7c97f5a5ee25f to your computer and use it in GitHub Desktop.
Revisions
-
bitliner revised this gist
Oct 15, 2020 . 1 changed file with 4 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 @@ -16,5 +16,9 @@ - `git reset --hard a1b2c3d4` - `git reset --hard HEAD~3` # Go back 3 commits. You *will* lose uncommitted work ## Merge commits - `git rebase -i HEAD~2` - merge the last 2 commits -
bitliner revised this gist
Aug 4, 2020 . 1 changed file with 7 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 @@ -11,3 +11,10 @@ - `git stash show` - it makes the list of files of the last stashed patch - `git stash show -p` - it shows the diff of the last stashed patch ## Remove history - `git reset --hard a1b2c3d4` - `git reset --hard HEAD~3` # Go back 3 commits. You *will* lose uncommitted work -
bitliner revised this gist
Aug 4, 2020 . 1 changed file with 7 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 @@ -4,3 +4,10 @@ - **Empty commit** `git commit --allow-empty -m 'fake commit to push' ` ## Git stash - `git stash` - `git stash pop` - apply last stashed patch - `git stash show` - it makes the list of files of the last stashed patch - `git stash show -p` - it shows the diff of the last stashed patch -
bitliner created this gist
Jun 7, 2020 .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,6 @@ # Git ## Commit - **Empty commit** `git commit --allow-empty -m 'fake commit to push' `