Created
April 12, 2021 08:45
-
-
Save brianfoody/63a7d3f654cae0c919f7b5b4b825629c to your computer and use it in GitHub Desktop.
GitHub alias to add, commit and publish
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
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