Created
April 4, 2014 09:20
-
-
Save wmfairuz/9971064 to your computer and use it in GitHub Desktop.
Create a new project from a subfolder of another 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
cd super-project | |
git subtree split --prefix=sub-folder --branch=sub-folder-only | |
mkdir new-sub-folder | |
pushd new-sub-folder | |
git init | |
git remote add origin [email protected]:my-user/new-project.git | |
git pull ../ sub-folder-only | |
popd |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment