Created
May 30, 2011 15:07
-
-
Save markbirbeck/999029 to your computer and use it in GitHub Desktop.
Import vendor library into Git-managed project
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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