Horje
undo git reset HEAD~1 Code Example
git reset head
$ git reset --hard HEAD       (going back to HEAD)

$ git reset --hard HEAD^      (going back to the commit before HEAD)
$ git reset --hard HEAD~1     (equivalent to "^")

$ git reset --hard HEAD~2     (going back two commits before HEAD)
undo git reset HEAD~1
# if you would like to move back the head by one position you could do:
git reset HEAD~

# if you want to move multiple positions at once e.g 3 times back type: 
git reset HEAD@{3}
git reset head
git reset --hard HEAD
git reset head
sudo git reset --hard Head




Shell

Related
git vs code editor Code Example git vs code editor Code Example
installing mate desktop on ubuntu 18.04 Code Example installing mate desktop on ubuntu 18.04 Code Example
linux remove lines from one file in another Code Example linux remove lines from one file in another Code Example
gitignore dotnet mvc Code Example gitignore dotnet mvc Code Example
install git on linux Code Example install git on linux Code Example

Type:
Code Example
Category:
Coding
Sub Category:
Code Example
Uploaded by:
Admin
Views:
14