Good idea. I tried to do that, but the diff command fails:

[dor...@doriadjec VTK-PCA]$ git remote add kitware git://vtk.org/VTK.git
[dor...@doriadjec VTK-PCA]$ git fetch kitware master
remote: Counting objects: 6937, done.
...
 * branch            master     -> FETCH_HEAD
[dor...@doriadjec VTK-PCA]$ git log --oneline VTK-PCA ^remotes/kitware/master
fatal: bad revision '^remotes/kitware/master'

I also tried without the ^ (I didn't know if it was a typo)

[dor...@doriadjec VTK-PCA]$ git log --oneline VTK-PCA remotes/kitware/master
fatal: ambiguous argument 'remotes/kitware/master': unknown revision or path not
Use '--' to separate paths from revisions

[dor...@doriadjec VTK-PCA]$ git branch
* VTK-PCA
  VTK-daviddoria

(you can see my current branch is called VTK-PCA)

Thanks for the help so far,

David



On Tue, Oct 12, 2010 at 1:45 PM, Konstantin Khomoutov
<khomou...@gmail.com> wrote:
> On Oct 12, 9:17 pm, David Doria <daviddo...@gmail.com> wrote:
>
>> Here is my setup:
>>
>> MasterRepo: branch 'master' - this is the "live" copy
>>
>> SecondRepo: branch 'mybranch' - cloned from MasterRepo's master branch
>> a long time ago. Changes have been made.
>>
>> What I want to do is see which files are different in SecondRepo's
>> mybranch versus MasterRepo's master branch. Can I do this? All of the
>> commands I have found are for diffing two branches in the same
>> repository.
> So just bring the MasterRepo's "master" branch to the SecondRepo and
> do any comparisons you need. Then delete that branch.
>
> For instance:
> $ git remote add roots ssh://URL/of/MasterRepo
> $ git fetch roots master
> $ git log --oneline master ^remotes/roots/master
> ...
> $ git remote rm roots
>
> --
> You received this message because you are subscribed to the Google Groups 
> "Git for human beings" group.
> To post to this group, send email to git-us...@googlegroups.com.
> To unsubscribe from this group, send email to 
> git-users+unsubscr...@googlegroups.com.
> For more options, visit this group at 
> http://groups.google.com/group/git-users?hl=en.
>
>

-- 
You received this message because you are subscribed to the Google Groups "Git 
for human beings" group.
To post to this group, send email to git-us...@googlegroups.com.
To unsubscribe from this group, send email to 
git-users+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/git-users?hl=en.

Reply via email to