Horje
git reset head 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)
git soft reset head
git reset --soft HEAD^
//resets head by 1
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
git reset
git reset --soft HEAD~3
git commit
git push —force-with-lease origin




Shell

Related
what command do you use to pull any changes from the master repository into your local repository? Code Example what command do you use to pull any changes from the master repository into your local repository? Code Example
git configure default editor Code Example git configure default editor Code Example
check system memory type Code Example check system memory type Code Example
check if variable is a number in bash Code Example check if variable is a number in bash Code Example
check ram type Code Example check ram type Code Example

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