1

I have my git repository on a server say X and it has below folder structure: github --> Folder1 Folder2 Folder3

I want to clone this github on other server say Y, but only the Folder1.

Can someone help me out here?

rohit_mishra
  • 41
  • 1
  • 2
  • 8
  • 1
    You are looking for sparse checkout as explained [here](http://stackoverflow.com/a/13738951/978414). – ivann May 10 '16 at 09:29
  • Possible duplicate of [Is there any way to clone a git repository's sub-directory only?](http://stackoverflow.com/questions/600079/is-there-any-way-to-clone-a-git-repositorys-sub-directory-only) – eis May 10 '16 at 10:00
  • see http://stackoverflow.com/questions/37117086/how-to-checkout-a-branch-from-repository/37117425#37117425 – pRaNaY May 10 '16 at 13:39
  • I am able to do the same earlier, but if I change the file under folder1 say file1.sh then can we push that file to same folder folder1 only. – rohit_mishra May 11 '16 at 08:24

0 Answers0