Vendor Branches with Git (including third party code) (11 Nov 2012)
In Subverison, externals and vendor branches are used to include code from different repositories in your own projects. Externals are used when we want to include code but have no need to modify it and a vendor branch would be used when we want to include code that we also need to make custom modifications to i.e. for a bug fix / security patch that we cannot wait for the maintainers of the third party code to fix.
I've outlined three methods that you can use in git to include third party code: