[Vm-dev] checking out pull request locally
btc at openinworld.com
Tue Oct 3 16:04:52 UTC 2017
I learnt a cool new trick today from .
>From the opensmalltalk-vm root folder...
$ vi .git/config
I ended up with...
url = git at github.com:OpenSmalltalk/opensmalltalk-vm.git
fetch = +refs/heads/*:refs/remotes/origin/*
fetch = +refs/pull/*/head:refs/remotes/PR/*
and thus for example can now do...
$ git fetch origin # i.e. from github server
$ git checkout PR/136
Per the provided message, you review the PR in a detached HEAD state since
its not a local branch, but that is no big deal for read only and
instructions are provided to use -b to turn it into a local branch.
Back to your regularly scheduled program via...
$ git checkout Cog
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the Vm-dev