Skip to content

Instantly share code, notes, and snippets.

@spetsmash
spetsmash / pr.md
Created January 22, 2019 11:00 — forked from piscisaureus/pr.md
Checkout github pull requests locally

Locate the section for your github remote in the .git/config file. It looks like this:

[remote "origin"]
	fetch = +refs/heads/*:refs/remotes/origin/*
	url = git@github.com:joyent/node.git

Now add the line fetch = +refs/pull/*/head:refs/remotes/origin/pr/* to this section. Obviously, change the github url to match your project's URL. It ends up looking like this:

pragma solidity 0.4.21;
// File: zeppelin-solidity/contracts/ownership/Ownable.sol
/**
* @title Ownable
* @dev The Ownable contract has an owner address, and provides basic authorization control
* functions, this simplifies the implementation of "user permissions".
*/
contract Ownable {
0x6D3869Ca54812bC0749591f4c4D756dcE3e2cDa5
0x6D3869Ca54812bC0749591f4c4D756dcE3e2cDa5
0x45460a8e6ec6c97b118809207d24746d311bb050
0x33f1f7a788E73A3b4F010445d6F69a12Eb61246F
0xdB828Dbd8B94fD2170b3d8C4A4Ab17852f8Bfd67