Skip to content

Instantly share code, notes, and snippets.

@sailfish009
Last active August 19, 2021 14:33
Show Gist options
  • Select an option

  • Save sailfish009/e06ff5e5783d61897b2c926a8590bdd4 to your computer and use it in GitHub Desktop.

Select an option

Save sailfish009/e06ff5e5783d61897b2c926a8590bdd4 to your computer and use it in GitHub Desktop.
#! /bin/sh
# chmod +x /usr/local/bin/commit
# usage: commit "update something"
# git add . && git commit -m "$@" && git push origin master # bitbucket
git add . && git commit -m "$@" && git push origin main # github
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment