Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #!/bin/bash
- COMMIT=$(curl --silent http://whatthecommit.com/index.txt)
- echo -ne "\033[31m"
- git add --all
- echo -ne "\033[32m"
- git commit -am "$COMMIT"
- echo -ne "\033[33m"
- git push origin master
- echo -ne "\033[34m"
- echo ""
- echo "LIST OF MY COMMITS"
- echo -ne "\033[35m\033[5m"
- cat .git/logs/HEAD | awk -F '\t' '{print $2}' | sed 's/commit://g' | sed 's/commit (initial)://g'
- echo -ne "\033[0m"
Advertisement
Add Comment
Please, Sign In to add comment