Skip to content

Instantly share code, notes, and snippets.

@wataru420
Last active March 23, 2016 05:18
Show Gist options
  • Save wataru420/6247700 to your computer and use it in GitHub Desktop.
Save wataru420/6247700 to your computer and use it in GitHub Desktop.
gitの特定のディレクトリをブランチ毎別リポジトリにする方法 ref: http://qiita.com/wataru420/items/f1eb7cf37fe5ba4980c3
mkdir ~/subproject
cd ~/
git clone baseproject subproject
cd ~/subproject/
git filter-branch --subdirectory-filter subproject -- --all
git branch -a
git checkout -b origin/feature001
git checkout -b origin/feature002
git remote rm origin
git remote add origin [email protected]:hoge/subproject.git
git push --all
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment