Answer the question
In order to leave comments, you need to log in
How to clone a single folder from a git repository?
Hello.
There is a git repository. You need to clone some folder from this repository.
In svn it could be done like this
foo.bar/svn/trunk/myDir
how to build a similar link in the git?
Thank you.
Answer the question
In order to leave comments, you need to log in
no way, you clone the entire repository and then do whatever you want with it. This is the main difference between git and svn. In git you just have a link to another repository and you sync them. But you can't sync. And generally forget about the original.
If you want to move a folder to a separate repository, you can run filter-branch on the directory and select only the commits related to that directory.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question