Created
November 24, 2016 10:42
-
-
Save songritk/a323288432456f7e608d8b3c466c0289 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
sha1=$1 | |
if ! [ $# -eq 1 ] | |
then | |
echo "./revert-git.sh <commit HASH number>" | |
exit | |
fi | |
git reset --hard $sha1 | |
git push -f origin master |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment