{"thread":{"id":"23633","subject":"See commits on remote repository","startedAt":"2010-04-28T22:35:32Z","lastAt":"2010-04-29T02:44:10Z","messageCount":4,"participants":["Bryan Richardson","Sylvain Rabot","Jeff King"],"isPatch":false,"patchVersion":null,"patchTotal":null},"messages":[{"id":"140611","messageId":"n2v3f81a4241004281535h30d35f5cw5f33e265d19d35b6@mail.gmail.com","threadId":"23633","inReplyTo":null,"subject":"See commits on remote repository","fromName":"Bryan Richardson","fromEmail":"btricha@gmail.com","sentAt":"2010-04-28T22:35:32Z","receivedAt":"2010-04-28T22:35:32Z","isPatch":false,"sender":{"key":"btricha@gmail.com","avatar":null},"body":"Hello All,\n\nSorry if this question has been asked already. This mailing list is\ncrazy active, and even after searching I couldn't find anything.\n\nIs it possible to show commits to a remote repository that was created\nas a clone of a local repository, similar to how GitHub lets users\nview commits made to forked projects in a project's network?\n\nFor example, say I have repository X, which I do a bare clone on to\ncreate repository Y for someone else to work on (effectively forking\nrepo X). Is there a way for me to see, from repository X, what commits\nhave been made to repository Y?\n\n--\nThanks!\nBryan\n"},{"id":"140613","messageId":"1272495295.3021.84.camel@kheops","threadId":"23633","inReplyTo":"n2v3f81a4241004281535h30d35f5cw5f33e265d19d35b6@mail.gmail.com","subject":"Re: See commits on remote repository","fromName":"Sylvain Rabot","fromEmail":"sylvain@abstraction.fr","sentAt":"2010-04-28T22:54:55Z","receivedAt":"2010-04-28T22:54:55Z","isPatch":false,"sender":{"key":"sylvain@abstraction.fr","avatar":"https://avatars.githubusercontent.com/u/153052?v=4"},"body":"On Wed, 2010-04-28 at 16:35 -0600, Bryan Richardson wrote:\n> Hello All,\n> \n> Sorry if this question has been asked already. This mailing list is\n> crazy active, and even after searching I couldn't find anything.\n> \n> Is it possible to show commits to a remote repository that was created\n> as a clone of a local repository, similar to how GitHub lets users\n> view commits made to forked projects in a project's network?\n> \n> For example, say I have repository X, which I do a bare clone on to\n> create repository Y for someone else to work on (effectively forking\n> repo X). Is there a way for me to see, from repository X, what commits\n> have been made to repository Y?\n> \n> --\n> Thanks!\n> Bryan\n\nHi,\n\n$ git remote update\n$ git log origin/<branch>\n$ gitk origin/<branch>\n\nRegards.\n\n\n-- \nSylvain Rabot <sylvain@abstraction.fr>\n"},{"id":"140621","messageId":"20100429014943.GA4269@coredump.intra.peff.net","threadId":"23633","inReplyTo":"1272495295.3021.84.camel@kheops","subject":"Re: See commits on remote repository","fromName":"Jeff King","fromEmail":"peff@peff.net","sentAt":"2010-04-29T01:49:43Z","receivedAt":"2010-04-29T01:49:43Z","isPatch":false,"sender":{"key":"peff@peff.net","avatar":"https://avatars.githubusercontent.com/u/45925?v=4"},"body":"On Thu, Apr 29, 2010 at 12:54:55AM +0200, Sylvain Rabot wrote:\n\n> > For example, say I have repository X, which I do a bare clone on to\n> > create repository Y for someone else to work on (effectively forking\n> > repo X). Is there a way for me to see, from repository X, what commits\n> > have been made to repository Y?\n> > \n> $ git remote update\n> $ git log origin/<branch>\n> $ gitk origin/<branch>\n\nThat's backwards. He's in the parent repo and wants to see what the\nchild did.\n\nThe answer is \"no, not automatically. Git is fully distributed and\nrepository X knows nothing about repository Y that was cloned from it\".\n\nBut also because git is fully distributed, you can simply treat the\ncloned child like any other remote:\n\n  git remote add y /path/to/y\n  git remote update ;# or just \"git fetch y\"\n  git log y/<branch> ;# what happened in y's <branch>\n  gitk y/<branch>...<branch> ;# differences since y forked\n\n-Peff\n"},{"id":"140622","messageId":"h2s3f81a4241004281944t574993dfo2af11e451baf98de@mail.gmail.com","threadId":"23633","inReplyTo":"20100429014943.GA4269@coredump.intra.peff.net","subject":"Re: See commits on remote repository","fromName":"Bryan Richardson","fromEmail":"btricha@gmail.com","sentAt":"2010-04-29T02:44:10Z","receivedAt":"2010-04-29T02:44:10Z","isPatch":false,"sender":{"key":"btricha@gmail.com","avatar":null},"body":"Sweetness... this will be most useful. Thanks to both you and Sylvain\nfor responding!\n\nOn Wed, Apr 28, 2010 at 7:49 PM, Jeff King <peff@peff.net> wrote:\n> On Thu, Apr 29, 2010 at 12:54:55AM +0200, Sylvain Rabot wrote:\n>\n>> > For example, say I have repository X, which I do a bare clone on to\n>> > create repository Y for someone else to work on (effectively forking\n>> > repo X). Is there a way for me to see, from repository X, what commits\n>> > have been made to repository Y?\n>> >\n>> $ git remote update\n>> $ git log origin/<branch>\n>> $ gitk origin/<branch>\n>\n> That's backwards. He's in the parent repo and wants to see what the\n> child did.\n>\n> The answer is \"no, not automatically. Git is fully distributed and\n> repository X knows nothing about repository Y that was cloned from it\".\n>\n> But also because git is fully distributed, you can simply treat the\n> cloned child like any other remote:\n>\n>  git remote add y /path/to/y\n>  git remote update ;# or just \"git fetch y\"\n>  git log y/<branch> ;# what happened in y's <branch>\n>  gitk y/<branch>...<branch> ;# differences since y forked\n>\n> -Peff\n>\n"}]}