jimcgh
jimcgh

Reputation: 5957

Converting a subdirectory in a git repo into an independent git repo

I have a git repository on Unfuddle. This repo contains multiple projects none of which are individually tracked by git. I happen to work on one of these projects but i have to pull the complete repo everytime before i push the committed changes to my project,because its the entire set of projects that under version control. So the repo structure is like this

MainRepo
  Project A
  Project B
  Project C
  .git

There is no .git in either Project A,B or C.Suppose i work on Project C, can i just work with it individually ?. What would be the steps to do that ?

Thank You

Upvotes: 0

Views: 66

Answers (1)

Adam Dymitruk
Adam Dymitruk

Reputation: 129584

use filter branch on a new branch you spawn for each project. Fetch those into individual repos.

Upvotes: 0

Related Questions