Created
December 17, 2018 13:04
-
-
Save arielivandiaz/9eeb8e1537c0bdc64ed2d9656dc28612 to your computer and use it in GitHub Desktop.
Git add, commit and push in a single line - bash command
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
#!/bin/sh | |
# Run: > sh commit.sh 'This is a commit description/message' | |
git status | |
git add -A | |
git commit -m '$1' | |
git push origin master |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment