Last active
August 29, 2015 14:23
-
-
Save SauloSilva/372f77fecfce995715d6 to your computer and use it in GitHub Desktop.
git commit --amend
This file contains hidden or 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 | |
CURRENT_BRANCH=$(git rev-parse --abbrev-ref HEAD) | |
echo -e "$(tput setaf 2)** Executing Status command$(tput sgr0)" | |
git add . | |
echo -e "$(tput setaf 2)** Executing Status command$(tput sgr0)" | |
git commit --amend $1 | |
echo -e "$(tput setaf 2)\n** Executing commit command$(tput sgr0)\n" | |
git push origin -f $CURRENT_BRANCH |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment