Skip to content

Instantly share code, notes, and snippets.

@xiocode
Created January 22, 2019 02:53
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 xiocode/d39cea643203d4c31ee09ba5bb6ea045 to your computer and use it in GitHub Desktop.
Save xiocode/d39cea643203d4c31ee09ba5bb6ea045 to your computer and use it in GitHub Desktop.
function gitall() {
    git add . -A
    if [ -n "$1" ]; then
        git commit -m "$1"
    else
        git commit -m "update"
    fi
    git push
}

alias gacp="gitall"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment