loading...

Discussion on: How do y'all patch other people's PRs in your local dev env?

Collapse
pstorch profile image
Peter Storch

I have this in my .zshrc (or .bashrc):

git_fetch_pull_request() {
    git fetch origin refs/pull/$1/head:pr/$1
    git checkout pr/$1
}
alias gpr='git_fetch_pull_request'

Then I can simply do gpr 115 to pull and checkout the PR locally.