Horje
github undo last pushed commit Code Example
cancel a commit not pushed
git reset --soft HEAD~
git undo pushed commit
git reset <previous label or sha1>
git commit -am "commit message"
git push -f <remote-name> <branch-name>  //  git push -f origin master
github undo last pushed commit
git reset <previous label or sha1>
git commit -am "blabla"
git push -f <remote-name> <branch-name>
how to revert last pushed commit
To 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




Shell

Related
bash for i in range Code Example bash for i in range Code Example
react print Code Example react print Code Example
install react react testing library Code Example install react react testing library Code Example
video player ubuntu Code Example video player ubuntu Code Example
environment variables in systemd Code Example environment variables in systemd Code Example

Type:
Code Example
Category:
Coding
Sub Category:
Code Example
Uploaded by:
Admin
Views:
11