Skip to content

Instantly share code, notes, and snippets.

@setohe0909
Last active January 17, 2020 14:49
Show Gist options
  • Save setohe0909/14979913e2624f424038dd20811d38b6 to your computer and use it in GitHub Desktop.
Save setohe0909/14979913e2624f424038dd20811d38b6 to your computer and use it in GitHub Desktop.

Revisions

  1. setohe0909 revised this gist Jan 17, 2020. No changes.
  2. setohe0909 revised this gist May 20, 2019. 1 changed file with 3 additions and 1 deletion.
    4 changes: 3 additions & 1 deletion General commands for Git
    Original file line number Diff line number Diff line change
    @@ -1 +1,3 @@
    git reset HEAD~1 --hard
    ## reset last commit
    git reset HEAD~1 --hard
    git reset HEAD~1 --soft
  3. setohe0909 created this gist Apr 23, 2019.
    1 change: 1 addition & 0 deletions General commands for Git
    Original file line number Diff line number Diff line change
    @@ -0,0 +1 @@
    git reset HEAD~1 --hard