Horje
git revert a commit Code Example
undo commit
# KEEP CHANGES
git reset --soft HEAD~1

# REMOVE CHANGES
git reset --hard HEAD~1
git revert commit
# Reset the index and working tree to the desired tree
# Ensure you have no uncommitted changes that you want to keep
git reset --hard 56e05fced

# Move the branch pointer back to the previous HEAD
git reset --soft HEAD@{1}

git commit -m "Reverting to the state of the project at f414f31"
revert commit git
git revert <commit hash>
git revert all commits to pervious commit
git revert --no-commit <commithash>..HEAD #revert changes in range of commits from head to back to that commit hash
git revert a commit
git revert --no-commit 0766c053..HEAD
git commit
git revert a commit
git reset 'HEAD@{1}'




Shell

Related
Reading state information... Done E: Unable to locate package docker-ce Code Example Reading state information... Done E: Unable to locate package docker-ce Code Example
how to start ngrok server Code Example how to start ngrok server Code Example
how to log into a remote linux server Code Example how to log into a remote linux server Code Example
create github repo without browser Code Example create github repo without browser Code Example
create github repo with bash Code Example create github repo with bash Code Example

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