{"thread":{"id":"14208","subject":"Is there a way to diff between a local repository and a remote one?","startedAt":"2008-06-29T11:29:34Z","lastAt":"2008-06-29T12:38:00Z","messageCount":4,"participants":["Erez Zilber","Boaz Harrosh","Jakub Narebski"],"isPatch":false,"patchVersion":null,"patchTotal":null},"messages":[{"id":"81632","messageId":"ce513bcc0806290429r1982fbf2i4c9a8258bc8db3c@mail.gmail.com","threadId":"14208","inReplyTo":null,"subject":"Is there a way to diff between a local repository and a remote one?","fromName":"Erez Zilber","fromEmail":"erezzi.list@gmail.com","sentAt":"2008-06-29T11:29:34Z","receivedAt":"2008-06-29T11:29:34Z","isPatch":false,"sender":{"key":"erezzi.list@gmail.com","avatar":null},"body":"I could clone the remote repository and use Linux's diff, but I prefer\nto do it the right way (if possible).\n\nThanks,\nErez\n"},{"id":"81634","messageId":"4867783C.1010408@panasas.com","threadId":"14208","inReplyTo":"ce513bcc0806290429r1982fbf2i4c9a8258bc8db3c@mail.gmail.com","subject":"Re: Is there a way to diff between a local repository and a remote one?","fromName":"Boaz Harrosh","fromEmail":"bharrosh@panasas.com","sentAt":"2008-06-29T11:55:40Z","receivedAt":"2008-06-29T11:55:40Z","isPatch":false,"sender":{"key":"bharrosh@panasas.com","avatar":"https://gravatar.com/avatar/347e426f8ca0409f6891ceeefd4c3c2d8769608382323057efeaa362b4c3dbf3?d=mp&s=160"},"body":"Erez Zilber wrote:\n> I could clone the remote repository and use Linux's diff, but I prefer\n> to do it the right way (if possible).\n> \n> Thanks,\n> Erez\n> --\n> To unsubscribe from this list: send the line \"unsubscribe git\" in\n> the body of a message to majordomo@vger.kernel.org\n> More majordomo info at  http://vger.kernel.org/majordomo-info.html\n> \n\nI use git-remote add\n\nand git-diff that_remote/that_branch\n\nthen from time to time \"git-remote update\" to update on remote progress\n\nBoaz\n"},{"id":"81635","messageId":"ce513bcc0806290519u2e97f276t9fbe8c87715488ea@mail.gmail.com","threadId":"14208","inReplyTo":"4867783C.1010408@panasas.com","subject":"Re: Is there a way to diff between a local repository and a remote one?","fromName":"Erez Zilber","fromEmail":"erezzi.list@gmail.com","sentAt":"2008-06-29T12:19:22Z","receivedAt":"2008-06-29T12:19:22Z","isPatch":false,"sender":{"key":"erezzi.list@gmail.com","avatar":null},"body":"On Sun, Jun 29, 2008 at 2:55 PM, Boaz Harrosh <bharrosh@panasas.com> wrote:\n> Erez Zilber wrote:\n>> I could clone the remote repository and use Linux's diff, but I prefer\n>> to do it the right way (if possible).\n>>\n>> Thanks,\n>> Erez\n>> --\n>> To unsubscribe from this list: send the line \"unsubscribe git\" in\n>> the body of a message to majordomo@vger.kernel.org\n>> More majordomo info at  http://vger.kernel.org/majordomo-info.html\n>>\n>\n> I use git-remote add\n>\n> and git-diff that_remote/that_branch\n>\n> then from time to time \"git-remote update\" to update on remote progress\n>\n> Boaz\n\nthanks!\n"},{"id":"81636","messageId":"m38wwoifi7.fsf@localhost.localdomain","threadId":"14208","inReplyTo":"ce513bcc0806290429r1982fbf2i4c9a8258bc8db3c@mail.gmail.com","subject":"Re: Is there a way to diff between a local repository and a remote one?","fromName":"Jakub Narebski","fromEmail":"jnareb@gmail.com","sentAt":"2008-06-29T12:38:00Z","receivedAt":"2008-06-29T12:38:00Z","isPatch":false,"sender":{"key":"jnareb@gmail.com","avatar":"https://avatars.githubusercontent.com/u/2706?v=4"},"body":"\"Erez Zilber\" <erezzi.list@gmail.com> writes:\n\n> Is there a way to diff between a local repository and a remote one?\n>\n> I could clone the remote repository and use Linux's diff, but I prefer\n> to do it the right way (if possible).\n\nThere is no way to do this remotely; you have to download either\nsnapshot (tarball) of remote repository (either from gitweb interface\nor other web interface if snapshot feature is enabled, or using \n\"git archive --remote=<repo> <version>\" (where <version> might be \"HEAD\")\nif it is enabled on remote), or fetch / shallow fetch / shallow clone\nof repository.\n\nIf local repository you want to diff is related to remote repository,\nthe simplest way would be to fetch (or shallow fetch) the repository\nyou want to compare into your repository, either using\n\n  $ git remote add -f <nick> <URL>\n  $ git diff HEAD <nick> #; or <nick>/HEAD, or <nick>/master\n\nor\n\n  $ git fetch --no-tags <URL> <branch> #; you can add --depth=1\n  $ git diff HEAD FETCH_HEAD\n\n(of course all above being in local repository; you can replace HEAD\nby local revision you want to compare)\n-- \nJakub Narebski\nPoland\nShadeHawk on #git\n"}]}