Skip to content

Instantly share code, notes, and snippets.

@arielivandiaz
Created December 17, 2018 13:04
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 arielivandiaz/9eeb8e1537c0bdc64ed2d9656dc28612 to your computer and use it in GitHub Desktop.
Save arielivandiaz/9eeb8e1537c0bdc64ed2d9656dc28612 to your computer and use it in GitHub Desktop.
Git add, commit and push in a single line - bash command
#!/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