Skip to content

Instantly share code, notes, and snippets.

@markbirbeck
Created May 30, 2011 15:07
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save markbirbeck/999029 to your computer and use it in GitHub Desktop.
Save markbirbeck/999029 to your computer and use it in GitHub Desktop.
Import vendor library into Git-managed project
# Add a reference to the remote repo:
#
git remote add ajax-solr git://github.com/evolvingweb/ajax-solr
# Get the objects from the repo:
#
git fetch ajax-solr
# Create a branch that tracks the remote master branch:
#
git checkout -b ajax-solr ajax-solr/master
# Switch back to our own master and pull the code into a sub-directory:
#
git checkout master
git read-tree --prefix=src/vendor/ajax-solr/ -u ajax-solr
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment