Created
August 4, 2014 04:21
-
-
Save wmfairuz/28c3989cd6ca3f37efe6 to your computer and use it in GitHub Desktop.
detach folder from repo
This file contains hidden or 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
pushd <big-repo> | |
git subtree split -P <name-of-folder> -b <name-of-new-branch> | |
popd | |
mkdir <new-repo> | |
pushd <new-repo> | |
git init | |
git pull </path/to/big-repo> <name-of-new-branch> | |
git remote add origin <[email protected]:my-user/new-repo.git> | |
git push origin -u master |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment