Skip to content

Instantly share code, notes, and snippets.

View elmendalerenda's full-sized avatar

Miguel Ángel Fernández elmendalerenda

View GitHub Profile
@elmendalerenda
elmendalerenda / .gitconfig
Last active August 29, 2015 14:05 — forked from briandailey/.gitconfig
find pull request
[alias]
pr = "!f() { git log --merges --ancestry-path --oneline $1..master | grep 'pull request' | tail -n1 | awk '{ print $5 }'; }; f"

Setup

git clone <repo>

clone the repository specified by ; this is similar to "checkout" in some other version control systems such as Subversion and CVS

Add colors to your ~/.gitconfig file: