Last active
October 8, 2020 13:50
-
-
Save resistdesign/87b1cf4d8f59af235579718c319c7734 to your computer and use it in GitHub Desktop.
Git Go!
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
NEW_BRANCH_NAME=$1 | |
git checkout -b $NEW_BRANCH_NAME | |
git push -u origin $NEW_BRANCH_NAME | |
clear | |
git status |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Run
chmod +x gitgo && chmod +x gittoit
and use this to easily format git commit messages.