git rollback by SHA hash

git log branch_name

# Reset the index to the desired tree
git reset 56e05fced

# Update working copy to reflect the new commit
git reset --hard

# Push force to update rollback to remote
git push -f
ex. git push -f origin master

Related posts:

This entry was posted in git, knowledge. Bookmark the permalink.