Skip to content

Instantly share code, notes, and snippets.

@ynaoto
Created October 2, 2013 14:16
Show Gist options
  • Select an option

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

Select an option

Save ynaoto/6794477 to your computer and use it in GitHub Desktop.
ローカルな git ディレクトリを取り込む
cd foo # .git があって github で管理しているところ
git remote add a /bar # ローカルな .git があるところ
git subtree add --prefix=bar a master
git push
git remote rm a
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment