undo git commit after push
git reset <hash> # Run this then merge, commit, and pushgit reset --hard <last_working_commit_id>
So we must not reset to the commit_id that we don't want.
Then sure, we must push to remote branch:
git push --forcegit reset <previous label or sha1>
git commit -am "blabla"
git push -f <remote-name> <branch-name>git reset HEAD~
git 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++:
- check if jquery is installed
- install pip for python 2.7 linux
- install qt creator ubuntu 20.04
- git revert one file
- ng : File C:\Program Files\nodejs\ng.ps1 cannot be loaded because running scripts is disabled on this system.
- monit network request in ubuntu
- boost volume ubuntu
- spotify download ubuntu
- cp ubuntu
- how to copy file to another directory in linux
- magento shell reindex
- angular install
- remove line with pattern
- - laravel/installer is locked to version v3.2.0 and an update of this package was not requested.
- uploading a folder to github
- flutter X Android license status unknown.
- git move back one commit
- bash uppercase string
- linux screen kill attached session
- Pterodactyl installer
- how to install intellij in mac
- computer running linux
- how to isnatll snap on ubuntu linux
- how to remove user from the group