Skip to content

Instantly share code, notes, and snippets.

@resistdesign
Last active October 8, 2020 13:50
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 resistdesign/87b1cf4d8f59af235579718c319c7734 to your computer and use it in GitHub Desktop.
Save resistdesign/87b1cf4d8f59af235579718c319c7734 to your computer and use it in GitHub Desktop.
Git Go!
#!/bin/bash
# See: https://www.conventionalcommits.org/en/v1.0.0
read -p 'Type: ' TYPE
read -p 'Subject: ' SUBJECT
read -p 'Message: ' MESSAGE
git add .
git commit -m "${TYPE}: (${SUBJECT}) ${MESSAGE}"
git push
clear
git status
#!/bin/bash
NEW_BRANCH_NAME=$1
git checkout -b $NEW_BRANCH_NAME
git push -u origin $NEW_BRANCH_NAME
clear
git status
@resistdesign
Copy link
Author

resistdesign commented May 19, 2020

Run chmod +x gitgo && chmod +x gittoit and use this to easily format git commit messages.

@resistdesign
Copy link
Author

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment