Equivalent to SVN Externals, GIT offers a nice feature called “Modules”. Long short story, you get to link an external project, inside your own project.
What do you make out of this?. Well, suppose you’re using a 3rd party library. You can update everything with just a command line pull. No need to download and merge, by hand.
Sounds nice, right?. It’s done this way:
[cc]
cd MyApp
git submodule add git://github.com/some-framework/some-framework.git Frameworks/SomeFramework
[/cc]
Afterwards, we need to recursively update the submodules. Which will, in turn, clone the ‘some-framework’ repository:
[cc]
git submodule update –init –recursive
[/cc]