Skip to content

Instantly share code, notes, and snippets.

@SauloSilva
Last active August 29, 2015 14:23
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save SauloSilva/372f77fecfce995715d6 to your computer and use it in GitHub Desktop.
Save SauloSilva/372f77fecfce995715d6 to your computer and use it in GitHub Desktop.
git commit --amend
#!/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