Skip to content

git pr to fetch GitHub pull requests locally #259

@rstacruz

Description

@rstacruz

I think it'd be nice to integrate https://gist.github.com/gnarf/5406589 into git-extras.

git pr NUMBER [REMOTE] - pulls PR
git pr-clean - deletes PR branches

$ git pr 22
#=> git fetch -fu origin refs/pull/22/head pr/22 && git checkout pr/22

$ git pr 22 upstream
#=> git fetch -fu upstream refs/pull/22/head pr/22 && git checkout pr/22

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions