git.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* See commits on remote repository
@ 2010-04-28 22:35 Bryan Richardson
  2010-04-28 22:54 ` Sylvain Rabot
  0 siblings, 1 reply; 4+ messages in thread
From: Bryan Richardson @ 2010-04-28 22:35 UTC (permalink / raw)
  To: git

Hello All,

Sorry if this question has been asked already. This mailing list is
crazy active, and even after searching I couldn't find anything.

Is it possible to show commits to a remote repository that was created
as a clone of a local repository, similar to how GitHub lets users
view commits made to forked projects in a project's network?

For example, say I have repository X, which I do a bare clone on to
create repository Y for someone else to work on (effectively forking
repo X). Is there a way for me to see, from repository X, what commits
have been made to repository Y?

--
Thanks!
Bryan

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: See commits on remote repository
  2010-04-28 22:35 See commits on remote repository Bryan Richardson
@ 2010-04-28 22:54 ` Sylvain Rabot
  2010-04-29  1:49   ` Jeff King
  0 siblings, 1 reply; 4+ messages in thread
From: Sylvain Rabot @ 2010-04-28 22:54 UTC (permalink / raw)
  To: git

[-- Attachment #1: Type: text/plain, Size: 857 bytes --]

On Wed, 2010-04-28 at 16:35 -0600, Bryan Richardson wrote:
> Hello All,
> 
> Sorry if this question has been asked already. This mailing list is
> crazy active, and even after searching I couldn't find anything.
> 
> Is it possible to show commits to a remote repository that was created
> as a clone of a local repository, similar to how GitHub lets users
> view commits made to forked projects in a project's network?
> 
> For example, say I have repository X, which I do a bare clone on to
> create repository Y for someone else to work on (effectively forking
> repo X). Is there a way for me to see, from repository X, what commits
> have been made to repository Y?
> 
> --
> Thanks!
> Bryan

Hi,

$ git remote update
$ git log origin/<branch>
$ gitk origin/<branch>

Regards.


-- 
Sylvain Rabot <sylvain@abstraction.fr>

[-- Attachment #2: This is a digitally signed message part --]
[-- Type: application/pgp-signature, Size: 197 bytes --]

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: See commits on remote repository
  2010-04-28 22:54 ` Sylvain Rabot
@ 2010-04-29  1:49   ` Jeff King
  2010-04-29  2:44     ` Bryan Richardson
  0 siblings, 1 reply; 4+ messages in thread
From: Jeff King @ 2010-04-29  1:49 UTC (permalink / raw)
  To: Sylvain Rabot; +Cc: Bryan Richardson, git

On Thu, Apr 29, 2010 at 12:54:55AM +0200, Sylvain Rabot wrote:

> > For example, say I have repository X, which I do a bare clone on to
> > create repository Y for someone else to work on (effectively forking
> > repo X). Is there a way for me to see, from repository X, what commits
> > have been made to repository Y?
> > 
> $ git remote update
> $ git log origin/<branch>
> $ gitk origin/<branch>

That's backwards. He's in the parent repo and wants to see what the
child did.

The answer is "no, not automatically. Git is fully distributed and
repository X knows nothing about repository Y that was cloned from it".

But also because git is fully distributed, you can simply treat the
cloned child like any other remote:

  git remote add y /path/to/y
  git remote update ;# or just "git fetch y"
  git log y/<branch> ;# what happened in y's <branch>
  gitk y/<branch>...<branch> ;# differences since y forked

-Peff

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: See commits on remote repository
  2010-04-29  1:49   ` Jeff King
@ 2010-04-29  2:44     ` Bryan Richardson
  0 siblings, 0 replies; 4+ messages in thread
From: Bryan Richardson @ 2010-04-29  2:44 UTC (permalink / raw)
  To: Jeff King; +Cc: Sylvain Rabot, git

Sweetness... this will be most useful. Thanks to both you and Sylvain
for responding!

On Wed, Apr 28, 2010 at 7:49 PM, Jeff King <peff@peff.net> wrote:
> On Thu, Apr 29, 2010 at 12:54:55AM +0200, Sylvain Rabot wrote:
>
>> > For example, say I have repository X, which I do a bare clone on to
>> > create repository Y for someone else to work on (effectively forking
>> > repo X). Is there a way for me to see, from repository X, what commits
>> > have been made to repository Y?
>> >
>> $ git remote update
>> $ git log origin/<branch>
>> $ gitk origin/<branch>
>
> That's backwards. He's in the parent repo and wants to see what the
> child did.
>
> The answer is "no, not automatically. Git is fully distributed and
> repository X knows nothing about repository Y that was cloned from it".
>
> But also because git is fully distributed, you can simply treat the
> cloned child like any other remote:
>
>  git remote add y /path/to/y
>  git remote update ;# or just "git fetch y"
>  git log y/<branch> ;# what happened in y's <branch>
>  gitk y/<branch>...<branch> ;# differences since y forked
>
> -Peff
>

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2010-04-29  2:44 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-04-28 22:35 See commits on remote repository Bryan Richardson
2010-04-28 22:54 ` Sylvain Rabot
2010-04-29  1:49   ` Jeff King
2010-04-29  2:44     ` Bryan Richardson

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).