git set head to commit
git revert {commit_id}'
# Set a new HEAD to a branch
# Note that commit can be a commit hash or tag or another branch
git reset --hard $COMMIT# rollback to commit state
git revert --no-commit 0766c053..HEAD
git commit
# This will detach your HEAD, that is, leave you with no branch checked out:
git checkout 0d1d7fc32# This will detach your HEAD, that is, leave you with no branch checked out:
git checkout 0d1d7fc32
# to go back to original branch, git checkout master
Also in C++:
- install nasm ubuntu
- how to remove all files from staging area git
- change git default editor to vscode
- git config
- how to open gofer in command prompt
- bootstrap npm
- how to extract tgz file in linux
- ohmyzsh
- create gz in ubuntu
- tmux split-window leave open
- wsl2 access folder from windows
- create a new file in git bash
- Linux How to zip two files
- psycopg2 error
- material ui core yarn
- versão do meu linux
- allintext:ubuntu services status
- install and set up mariadb django
- remove folder in all sub folders linux command
- No module named notebook
- kali linux download
- boot pendrive cmd
- display number of lines in nano linux
- upload to aws