git clone https://github.com/theleagueof/chunk git subtree split --prefix=folder_name -b new_branch git remote add upstream https://github.com/user/repo git push upstream new_branch