2013/7/11 Joel Nothman <jnoth...@student.usyd.edu.au>:
> That's good advice too. But it took me a while to realise that the GitHub
> stored pull requests as git refs (and the book doesn't cover ls-remote).

I have this stanza in my .git/config inside the scikit-learn source directory:

[remote "upstream"]
    url = g...@github.com:scikit-learn/scikit-learn.git
    fetch = +refs/heads/*:refs/remotes/upstream/*
    # fetch pull requests; https://gist.github.com/3342247
    fetch = +refs/pull/*/head:refs/remotes/upstream/pr/*

With this, git fetch will get all the PRs so I can do

    git fetch upstream
    git checkout pr/2120

and I'm on the MLP branch.

-- 
Lars Buitinck
Scientific programmer, ILPS
University of Amsterdam

------------------------------------------------------------------------------
See everything from the browser to the database with AppDynamics
Get end-to-end visibility with application monitoring from AppDynamics
Isolate bottlenecks and diagnose root cause in seconds.
Start your free trial of AppDynamics Pro today!
http://pubads.g.doubleclick.net/gampad/clk?id=48808831&iu=/4140/ostg.clktrk
_______________________________________________
Scikit-learn-general mailing list
Scikit-learn-general@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/scikit-learn-general

Reply via email to