Skip to content

Instantly share code, notes, and snippets.

@packmad
Created December 3, 2018 14:02
Show Gist options
  • Save packmad/23cf36dee8e563f4ab8ab27984261f88 to your computer and use it in GitHub Desktop.
Save packmad/23cf36dee8e563f4ab8ab27984261f88 to your computer and use it in GitHub Desktop.
Git command for the lazy and for the win
#!/bin/bash
git pull
if [ "$1" != "" ]; then
git commit -am "$1"
else
git commit -am "auto"
fi
git push
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment