Skip to content

Commit

Permalink
Git PR
Browse files Browse the repository at this point in the history
  • Loading branch information
celestian committed Nov 17, 2017
1 parent 7a78ebb commit f403534
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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'
```

0 comments on commit f403534

Please sign in to comment.