{"thread":{"id":"12998","subject":"Updating submodules","startedAt":"2008-04-05T22:46:40Z","lastAt":"2008-04-05T23:11:02Z","messageCount":4,"participants":["Pat Maddox","Avery Pennarun"],"isPatch":false,"patchVersion":null,"patchTotal":null},"messages":[{"id":"73713","messageId":"810a540e0804051546o250bd3e7mf7a20d8f1cc6dcfc@mail.gmail.com","threadId":"12998","inReplyTo":null,"subject":"Updating submodules","fromName":"Pat Maddox","fromEmail":"pergesu@gmail.com","sentAt":"2008-04-05T22:46:40Z","receivedAt":"2008-04-05T22:46:40Z","isPatch":false,"sender":{"key":"pergesu@gmail.com","avatar":null},"body":"Do I need to cd into each submodule dir and fetch/rebase?  git\nsubmodule update doesn't seem to do anything, though I would assume\nit's used to update the submodules...\n\nPat\n"},{"id":"73714","messageId":"32541b130804051601w4f7976cawde47a70e04790511@mail.gmail.com","threadId":"12998","inReplyTo":"810a540e0804051546o250bd3e7mf7a20d8f1cc6dcfc@mail.gmail.com","subject":"Re: Updating submodules","fromName":"Avery Pennarun","fromEmail":"apenwarr@gmail.com","sentAt":"2008-04-05T23:01:26Z","receivedAt":"2008-04-05T23:01:26Z","isPatch":false,"sender":{"key":"apenwarr@gmail.com","avatar":"https://avatars.githubusercontent.com/u/20592?v=4"},"body":"On 4/5/08, Pat Maddox <pergesu@gmail.com> wrote:\n> Do I need to cd into each submodule dir and fetch/rebase?  git\n>  submodule update doesn't seem to do anything, though I would assume\n>  it's used to update the submodules...\n\n\"git submodule update\" updates each submodule to the version that was\nchecked into the supermodule.  It doesn't do anything like fetch,\nrebase, or pull.\n\nAvery\n"},{"id":"73715","messageId":"810a540e0804051608s6b6580a3vd4bf9ae04c22f3d4@mail.gmail.com","threadId":"12998","inReplyTo":"32541b130804051601w4f7976cawde47a70e04790511@mail.gmail.com","subject":"Re: Updating submodules","fromName":"Pat Maddox","fromEmail":"pergesu@gmail.com","sentAt":"2008-04-05T23:08:04Z","receivedAt":"2008-04-05T23:08:04Z","isPatch":false,"sender":{"key":"pergesu@gmail.com","avatar":null},"body":"On Sat, Apr 5, 2008 at 4:01 PM, Avery Pennarun <apenwarr@gmail.com> wrote:\n>\n> On 4/5/08, Pat Maddox <pergesu@gmail.com> wrote:\n>  > Do I need to cd into each submodule dir and fetch/rebase?  git\n>  >  submodule update doesn't seem to do anything, though I would assume\n>  >  it's used to update the submodules...\n>\n>  \"git submodule update\" updates each submodule to the version that was\n>  checked into the supermodule.  It doesn't do anything like fetch,\n>  rebase, or pull.\n\nOkay.  So I've got a parent repo with three submodules.  I've been\nworking in one submodule and have been committing changes.  Now I\nwanted to get the latest changes upstream...I have to rebase that repo\nindividually, right?\n\nPat\n"},{"id":"73716","messageId":"32541b130804051611q396fcffch79f7ad1e391af73c@mail.gmail.com","threadId":"12998","inReplyTo":"810a540e0804051608s6b6580a3vd4bf9ae04c22f3d4@mail.gmail.com","subject":"Re: Updating submodules","fromName":"Avery Pennarun","fromEmail":"apenwarr@gmail.com","sentAt":"2008-04-05T23:11:02Z","receivedAt":"2008-04-05T23:11:02Z","isPatch":false,"sender":{"key":"apenwarr@gmail.com","avatar":"https://avatars.githubusercontent.com/u/20592?v=4"},"body":"On 4/5/08, Pat Maddox <pergesu@gmail.com> wrote:\n> On Sat, Apr 5, 2008 at 4:01 PM, Avery Pennarun <apenwarr@gmail.com> wrote:\n>  >\n>  > On 4/5/08, Pat Maddox <pergesu@gmail.com> wrote:\n>  >  > Do I need to cd into each submodule dir and fetch/rebase?  git\n>  >  >  submodule update doesn't seem to do anything, though I would assume\n>  >  >  it's used to update the submodules...\n>  >\n>  >  \"git submodule update\" updates each submodule to the version that was\n>  >  checked into the supermodule.  It doesn't do anything like fetch,\n>  >  rebase, or pull.\n>\n> Okay.  So I've got a parent repo with three submodules.  I've been\n>  working in one submodule and have been committing changes.  Now I\n>  wanted to get the latest changes upstream...I have to rebase that repo\n>  individually, right?\n\nYes.  Be careful of which branch your submodule is on; if \"git\nsubmodule update\" has done anything in the past, you might not be on a\nbranch at all, in which case you have to create a local branch with\nyour changes before you can safely rebase or push.\n\nAvery\n"}]}