Horje
git reset to commit Code Example
git reset to commit
# reset to specefic commit
git reset --hard <commit id>

# to go back one step 
git reset --hard HEAD~1

# note: use --soft to keep file changes
git soft reset head
git reset --soft HEAD^
//resets head by 1
git reset head
sudo git reset --hard Head
git reset hard
git reset --hard f414f31
git reset --soft HEAD@{1}
git commit -m "Reverting to the state of the project at f414f31"
how to reset git branch to a certain commit.
git revert --no-commit 0766c053..HEAD
git commit
git reset initial commit
git update-ref -d HEAD




Shell

Related
chrome remote device debugging Code Example chrome remote device debugging Code Example
give 777 permission folder and subfolders in linux Code Example give 777 permission folder and subfolders in linux Code Example
today's date shell script Code Example today's date shell script Code Example
mongodb shell query last document Code Example mongodb shell query last document Code Example
install github desktop ubuntu Code Example install github desktop ubuntu Code Example

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