Skip to content

Instantly share code, notes, and snippets.

@ynaoto
Created October 25, 2013 02:29
Show Gist options
  • Select an option

  • Save ynaoto/7148614 to your computer and use it in GitHub Desktop.

Select an option

Save ynaoto/7148614 to your computer and use it in GitHub Desktop.
あるレポの一部を、他のレポにコピー
cd /src_repo
git subtree split -P path/to/folder -b PathToFolder_branch
cd /dst_repo
git pull /src_repo PathToFolder_branch
git push
cd /src_repo
git branch -D PathToFolder_branch
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment