Re: [PATCH 2/2] Introduce git submodule attached update
- From
W. Trevor King <wking@tremily.us>
- Date
- Jan 6, 2014, 15:58 UTC
- Message-ID
- <20140106155849.GS3156@odin.tremily.us>
- In-Reply-To
- <20140106141805.GB27265@t2784.greatnet.de>
On Mon, Jan 06, 2014 at 03:18:05PM +0100, Heiko Voigt wrote:
> If you simply want to always checkout the development tip of some > project you could do something like this: > > git submodule foreach 'git fetch && git checkout origin/master'
Or (respecting submodule.<name>.branch):
$ git submodule update --remote
You can even:
$ git submodule update --remote --recursive
whenever you get an itch to upgrade everything everything in one sweeping, hard-to-debug move ;).
Cheers, Trevor
-- This email may be signed or encrypted with GnuPG (http://www.gnupg.org). For more information, see http://en.wikipedia.org/wiki/Pretty_Good_Privacy