Skip to content

Instantly share code, notes, and snippets.

@jfengq
jfengq / gitcheats.txt
Created June 24, 2016 09:10 — forked from chrismccoy/gitcheats.txt
git cheats
# shortform git commands
alias g='git'
# get list of followers from github username
curl -s https://api.github.com/users/username/followers | grep '\"login\"' | sed -e's/[,|"|:]//g' | awk '{print $(NF)}' | sort
# git commit random alias
git config --global alias.commit-random '!git commit -m "$(curl -s http://whatthecommit.com/index.txt)"'
usage: git commit-random