sakiir

psuhthat.sh

Nov 14th, 2014
165
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Bash 0.40 KB | None | 0 0
  1. #!/bin/bash
  2.  
  3. COMMIT=$(curl --silent http://whatthecommit.com/index.txt)
  4. echo -ne "\033[31m"
  5. git add --all
  6. echo -ne "\033[32m"
  7. git commit -am "$COMMIT"
  8. echo -ne "\033[33m"
  9. git push origin master
  10. echo -ne "\033[34m"
  11. echo ""
  12. echo "LIST OF MY COMMITS"
  13. echo -ne "\033[35m\033[5m"
  14. cat .git/logs/HEAD | awk -F '\t' '{print $2}' | sed 's/commit://g' | sed 's/commit (initial)://g'
  15. echo -ne "\033[0m"
Advertisement
Add Comment
Please, Sign In to add comment