Skip to content

Instantly share code, notes, and snippets.

@jpalmieri
Last active July 4, 2021 13:17
Show Gist options
  • Save jpalmieri/cb6271004127633a133e9606ddba58b1 to your computer and use it in GitHub Desktop.
Save jpalmieri/cb6271004127633a133e9606ddba58b1 to your computer and use it in GitHub Desktop.
git alias to prepend last commit message with '[skip ci]' (to skip a travis build)
git config --global alias.skip-ci '!git reset && COMMIT_MSG=`git show --format=format:%B -s` && git commit --allow-empty --amend -m "[skip ci] $COMMIT_MSG"'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment