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 | |
read -p "Git Commit SHA hashcode:" $commit | |
# First, check out the commit you wish to go back to (get sha-1 from git log) | |
git reset --hard $commit | |
# Then do a forced update. | |
git push origin +$commit^:develop |