Ask a Question
Ask Question Login
Corporate Training
  1. Community
  2. Python
  3. Question
Python

git clone subdirectory-How do I clone a subdirectory only of a Git repository?

Asked by Yash Raj Jul 2, 2021 1.3K views 1 answer
Share

About this question

I have my Git repository which, at the root, has two sub directories:

/finisht
/static

When this was in SVN, /finisht was checked out in one place, while /static was checked out elsewhere, like so:

svn co svn+ssh://admin@domain.com/home/admin/repos/finisht/static static

Is there a way to do this with Git?

Your answer

1 Answer

More Python discussions

Learn & Explore

Free tutorials and interview questions from industry experts — learn the skill, then get ready to prove it.

Latest Python Blogs

Guides, tips and career advice on Python from JanBask experts.