diff --git a/README.md b/README.md index ed2ba15..3a869b9 100644 --- a/README.md +++ b/README.md @@ -29,3 +29,11 @@ $ git clone git://github.com/altercation/vim-colors-solarized.git $ cd ~/.vim/bundle/YouCompleteMe $ ./install.sh --clang-completer + + +### git +``` +git config --add alias.pr '!f() { git fetch -fu ${2:-origin} refs/pull/$1/head:pr/$1 && git checkout pr/$1; }; f' + +git config --add alias.pr-clean '!git checkout master ; git for-each-ref refs/heads/pr/* --format="%(refname)" | while read ref ; do branch=${ref#refs/heads/} ; git branch -D $branch ; done' +```