Skip to content

Instantly share code, notes, and snippets.

@SirJson
Created February 6, 2020 01:39
Show Gist options
  • Save SirJson/761b296e92108de655c7e9c159a3eb88 to your computer and use it in GitHub Desktop.
Save SirJson/761b296e92108de655c7e9c159a3eb88 to your computer and use it in GitHub Desktop.
#!/bin/bash
ARG1=$1
MSG=${ARG1:-"Update - $(date)"}
function mkcommit()
{
echo "Commit Message: $1"
git commit -am "$1"
}
git add -A && mkcommit "$MSG" && git push || echo "Git upload failed"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment