after checking out a previous commit go back to latest commit
git checkout <commit hash> # go to previous commit
git revert <commit hash> # revert action of going to previous commit# This will detach your HEAD, that is, leave you with no branch checked out:
git checkout 0d1d7fc32git checkout -b old-state 0d1d7fc32
Also in C++:
- how to install ros package
- insert bash command to docker-compose file
- how to pull from a branch in git
- download putty for ubuntu
- give full permission to folder and subfolders in linux
- upload to aws
- venv git
- kali linux download
- tmux split-window leave open
- sed delete line with matching pattern
- linux how to show disk space
- git reset hard to remote
- how to start psql in linux
- git push ubuntu need to supply email and password everytime
- see detail of pid
- shell commands windows
- scss in gatsby
- linux check if x11
- delete branches in bulk git
- wp-cli search-replace
- recover git stash clear
- \Activate.ps1 cannot be loaded because running scripts is disabled on this system. For more information, see about_Execution_Policies at https:/go.microsoft.com/fwlink/?LinkID=135170
- convert all line endings to unix
- git undo stage