0. Checking Out Pull Requests
Git provides a mechanism for fetching remote pull requests into your own local repository. This is useful when reviewing code or testing patches locally. If you haven’t yet cloned the Griffin Git repository, use the following command:
$ git clone https://github.com/apache/griffin.git
$ cd griffin
To enable this feature you’ll need to configure the git remote repository to fetch pull request data. Do this by modifying the .git/config
file inside of your griffin directory. The remote may not be named “origin” if you’ve named it something else:
[remote "origin"]
url = git@github.com:apache/griffin.git
fetch = +refs/heads/*:refs/remotes/origin/*
fetch = +refs/pull/*/head:refs/remotes/origin/pr/* # Add this line
Once you’ve done this you can fetch remote pull requests
# Fetch remote pull requests
$ git fetch origin
# Checkout a remote pull request
$ git checkout origin/pr/100
# Create a local branch from a remote pull request
$ git checkout origin/pr/100 -b new-branch
1. Apply Jetbrains License
https://www.jetbrains.com/shop/eform/apache?product=ALL