Last active
October 11, 2019 20:15
-
-
Save leotac/483f2e3e459d68c114b7 to your computer and use it in GitHub Desktop.
Create new repo from subdirectory
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
mkdir subdir-fork | |
cd subdir-fork | |
git clone [email protected]:sbebo/REPO.git | |
git filter-branch --prune-empty --subdirectory-filter <SUBFOLDER> master | |
git remote -v | |
git remote rm origin | |
git remote add origin [email protected]:sbebo/<NEWREPO>.git |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment