Forked from chyld/gist:37c8e38b606292b112cb63564dce2e23
Created
August 3, 2021 19:07
-
-
Save shravankb/e1ee62dd545eb473bf61bffe6fd79e55 to your computer and use it in GitHub Desktop.
Revisions
-
chyld revised this gist
Sep 10, 2020 . 1 changed file with 2 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,5 @@ git restore . git commit --amend -m "change last commit" git revert <commit hash> # creates a new commit at head that undoes a previous commit get reset --hard --soft --mixed <hash> git reflog # look at the history of the head pointer git branch <name> <hash> # starts the branch at a particular hash -
chyld created this gist
Sep 9, 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 restore filename git restore -p filename (patch level) git restore . git commit --amend -m "change last commit" git revert <commit hash> # creates a new commit at head that undoes a previous commit get reset --hard --soft --mixed <hash>