Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #!/usr/bin/env bash
- if [ -z $1 ]; then
- echo "*** [NO COMMIT MESSAGE] ***";
- exit 0;
- fi
- git add .
- git commit -m "$(git rev-parse --abbrev-ref HEAD) $1"
- git push origin $(git rev-parse --abbrev-ref HEAD)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement