Skip to content

Instantly share code, notes, and snippets.

@SirJson
Created February 6, 2020 01:40
Show Gist options
  • Save SirJson/6e057ef97c256cc3a327d28b6f8c1d67 to your computer and use it in GitHub Desktop.
Save SirJson/6e057ef97c256cc3a327d28b6f8c1d67 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"
}
echo "Quick save..."
git add -A && mkcommit "$MSG"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment