How can I create a new branch in git from an existing file tree?

Posted by pkaeding on Stack Overflow See other posts from Stack Overflow or by pkaeding
Published on 2009-12-15T17:42:43Z Indexed on 2010/03/29 3:03 UTC
Read the original article Hit count: 397

Filed under:
|

I am looking to add an existing file tree to a git repository as a new branch (I can't just copy the existing tree into my git tree, since the existing tree is versioned under a different VCS, and I am trying to sync them up).

Is this possible?

EDIT: Would setting up a new git repository, that is connected to the existing remote repository, and then moving the resulting .git folder work? That seems really hackish, but if that's the way to do it...

© Stack Overflow or respective owner

Related posts about version-control

Related posts about git