Skip to content

Instantly share code, notes, and snippets.

@brianfoody
Created April 12, 2021 08:45
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 brianfoody/63a7d3f654cae0c919f7b5b4b825629c to your computer and use it in GitHub Desktop.
Save brianfoody/63a7d3f654cae0c919f7b5b4b825629c to your computer and use it in GitHub Desktop.
GitHub alias to add, commit and publish
gitc () {
msg=${1:-'Quick commit'}
git add . && git commit -m "$msg" && git push origin $(git branch | sed -n "/\* /s///p")
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment