Horje
git revert last commit remote Code Example
revert last push to server
git reset --hard HEAD@{1}
git push -f
git remove commits from branch after push
git 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 --force
git how to undo a pushed commit
git revert <commit_hash>
undo last commit pushed
git reset # commitId
# Exemple
git reset 5310517
git revert last commit remote
Set the local branch one revision back (HEAD^ means one revision back):
`git reset --hard HEAD^`

Push the changes to origin:
`git push --force`




Shell

Related
bash minimize window Code Example bash minimize window Code Example
montar pasta compartilhada virtualbox Code Example montar pasta compartilhada virtualbox Code Example
uninstall zoom command line Code Example uninstall zoom command line Code Example
how to rename a file on cmd prompt to current date Code Example how to rename a file on cmd prompt to current date Code Example
how to open ssh on port 22 manjaro Code Example how to open ssh on port 22 manjaro Code Example

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