undo last commit pushed
git reset --hard HEAD@{1}
git push -fgit reset # commitId
# Exemple
git reset 5310517To reset a brancj to some good commit:
In the server, move the cursor back to the last known good commit:
git push -f origin <last_known_good_commit>:<branch_name>
Locally, do the same:
git reset --hard <last_known_good_commit>
# ^^^^^^
# optional
Also in C++:
- remove port iptables
- mount a filesystem under another filesystem linux
- pom version increment linux
- cancel a merge git
- how to create bootable usb on manjaro
- git rename branch from local
- execute php file from command line
- job name getprojectmetadata does not exist
- how to git pull origin master
- delete a branch git
- how to create reactportal in gatsby
- git no ssl
- kill port linux
- disregard incoming git pull and return to last commit
- how to keep name for ec2 instance running
- como desfazer um git add .
- hash sum mismatch ubuntu 20.04
- open visual studio code from terminal ubuntu
- create directory in linux
- ubuntu install matplotlib
- cmd kill process by pid
- install net tools in manjaro
- linux find any file linux
- github pulic keys