...
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 Spark Git repository, use the following command:
Code Block |
---|
$ git clone https://github.com/apache/spark.git
$ cd spark |
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 Spark directory. The remote may not be named "origin" if you've named it something else:
Code Block | ||||
---|---|---|---|---|
| ||||
[remote "origin"] url = git@github.com:apache/spark.git ... may be other stuff here ... fetch = +refs/pull/*/head:refs/remotes/origin/pr/* # Add this line |
...