how to go to a previous commit state
git revert <commit hash># This will destroy any local modifications.
# Don't do it if you have uncommitted work you want to keep.
git reset --hard 0d1d7fc32
# Alternatively, if there's work to keep:
git stash
git reset --hard 0d1d7fc32
git stash pop
# This saves the modifications, then reapplies that patch after resetting.
# You could get merge conflicts, if you've modified things which were
# changed since the commit you reset to.# This will detach your HEAD, that is, leave you with no branch checked out:
git checkout 0d1d7fc32
Also in C++:
- kubectl install ubuntu 20.04
- install i3-gaps ubuntu
- how to check opencv version
- how to set execute permission in linux
- github gist api
- install docker machine ubuntu
- how to install google chrome in ubuntu 32-bit
- react-native 6 digit code
- dependency problems - leaving unconfigured Errors were encountered while processing:
- how to close port in linux
- npm install yarn equivalent
- git command to refresh remote branches
- terraform backend
- how to add path in ubuntu
- npm install aos
- enable vault autocomplete
- git commit and add in one command
- how to look the usb free space in linux command line
- git Already up to date.
- su to root linux
- su postgres
- find name file in cmd
- see hide file linux terminal
- uninstall certbot ubuntu 16 nginx