Horje
how to undo a commit sent that was pushed Code Example
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
how to undo a commit sent that was pushed
git revert <commit_hash>
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
makefile parameter Code Example makefile parameter Code Example
git checkout -f Code Example git checkout -f Code Example
Check your PC's SSH Key Code Example Check your PC's SSH Key Code Example
how to recover last commit git Code Example how to recover last commit git Code Example
how to undo last pushed commit Code Example how to undo last pushed commit Code Example

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