git rollback by SHA hash

http://stackoverflow.com/questions/1064361/unable-to-show-a-git-tree-in-terminal

git log branch_name

http://stackoverflow.com/questions/1895059/revert-to-a-commit-by-a-sha-hash-in-git

# 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.