Skip to content

Instantly share code, notes, and snippets.

DanKaplanSES / git-m
Last active Aug 29, 2015
My Git Merge command
View git-m
#!/bin/bash -x
set -e
#by naming this git-m and putting it in your PATH, git will be able to run it when you type "git m ..."
if [ "$#" -ne 2 ]
echo "Wrong number of arguments. Should be 2, was $#";
exit 1;
View My Git lg alias
lg = log --max-count=100 --branches --color --graph --pretty=format:'%Cred%h%Creset - %C(bold blue)<%an>%Creset -%C(auto)%d%Creset %s %Cgreen(%cr)' --abbrev-commit
View caster contractions
"contraction <text> will":
R(Text("%(text)s'll ")),
"cap contraction <text> will":
R(Function(lambda text:Text(text.capitalize() + "'ll ").execute())),
"contraction <text> have":
R(Text("%(text)s've ")),
"cap contraction <text> have":
R(Function(lambda text:Text(text.capitalize() + "'ve ").execute())),
"contraction <text> are":
R(Text("%(text)s're ")),