From 66829521b835fa481c56beae62067436e66a4068 Mon Sep 17 00:00:00 2001 From: Marcello Lamonaca Date: Thu, 20 May 2021 12:21:48 +0200 Subject: [PATCH] Add notes on git reset --- Git/git.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Git/git.md b/Git/git.md index 7ae522f..8e9bf13 100644 --- a/Git/git.md +++ b/Git/git.md @@ -214,7 +214,7 @@ It’s generally recommended creating annotated tags so it's possible to have al `git reset `: undo all commits after specified commit, preserving changes locally `git checkout `: discard changes `git checkout -- `: discard changes, no output to screen -`git reset --hard`: discard all changes since last commit +`git reset --soft `: revert to specific commit but keep changes and staged files `git reset --hard `: discard all history and changes back to specified commit `git rebase -i HEAD~`: modify (reword, edit, drop, squash, merge, ...) *n* commits