Skip to content

Instantly share code, notes, and snippets.

@blaedj
Created December 30, 2013 17:02
Show Gist options
  • Save blaedj/8184762 to your computer and use it in GitHub Desktop.
Save blaedj/8184762 to your computer and use it in GitHub Desktop.
some git aliases
Here are some git aliases
ll = log --pretty=format:"%C(yellow)%h%Cred%d\\ %Creset%s%Cblue\\ [%cn]" --decorate --numstat
ls = log --pretty=format:"%C(yellow)%h%Cred%d\\ %Creset%s%Cblue\\ [%cn]" --decorate
lds = log --pretty=format:"%C(yellow)%h\\ %ad%Cred%d\\ %Creset%s%Cblue\\ [%cn]" --decorate --date=short
done = "!f() { git branch | grep "$1" | cut -c 3- | grep -v done | xargs -I{} git branch -m {} done-{}; }; f"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment