Skip to content

Instantly share code, notes, and snippets.

@victorpaulo
Last active August 26, 2019 10:38
Show Gist options
  • Save victorpaulo/1c84ebe3a6403c55e5a1be2ad806a508 to your computer and use it in GitHub Desktop.
Save victorpaulo/1c84ebe3a6403c55e5a1be2ad806a508 to your computer and use it in GitHub Desktop.
git tips
#!/bin/bash
if [ "$#" -ne 1 ]; then
echo "please provide the comment as first argument"
exit 1
fi
git add .
git commit -a -m "$1"
git push origin dev
echo "done."
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment