Created
July 10, 2014 13:08
-
-
Save kublaios/127c0cd9d6785953019b to your computer and use it in GitHub Desktop.
Shell script to add, commit and push changes in a single line of code
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
git add -A; | |
git commit -m "$1"; | |
git push origin $2 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Sample Usage
In the repo directory, call the script by passing commit message as param1 and param2 as branch name.
Output would be: