On Thu, Jan 21, 2010 at 8:51 AM, odigity <[email protected]> wrote:
> I'm new to git and github. I'm trying to learn more about the openid
> extension to the authlogic module for Rails. There are two example
> applications demonstrating how to use the authlogic module, one basic:
>
> http://github.com/binarylogic/authlogic_example
>
> And one with openid added in:
>
> http://github.com/binarylogic/authlogic_example/tree/with-openid
>
> I want to download both so I can do a diff, but I can't figure out
> how. I was able to use git clone to download the main example, but I
> can't figure out how to download the branch. I've tried appending to
> the path, I've tried the -o option since it was the only one that look
> related to branching - nothing has worked. Every attempt has either
> failed or simply downloaded another copy of the master branch.
First, make sure you have git installed.
You want to clone the repository using the public "Read-Only" git URL like this:
git clone git://github.com/binarylogic/authlogic_example.git
That will create a authlogic_example directory and checkout the master
branch. Change into it and run `git diff' as follows:
cd authlogic_example
git diff with-openid
See `man git-diff' for a whole bunch of additional options.
I'll also note that GitHub has a top secret "Comparison View" that
shows diffs between two branches:
http://github.com/binarylogic/authlogic_example/compare/master...with-openid
Hope this helps.
Ryan
--
You received this message because you are subscribed to the Google Groups
"GitHub" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/github?hl=en.