git - is there a way to get only required files in the working directory
Posted
by
spoonboy
on Stack Overflow
See other posts from Stack Overflow
or by spoonboy
Published on 2014-06-08T09:07:50Z
Indexed on
2014/06/08
9:24 UTC
Read the original article
Hit count: 162
git
I'm new to git and trying to use it with a project that has many (several hundreds) sources. The problem I have is that git is extracting all the project's sources to my working directory when doing checkout. This makes a lot of mess as I have to jump between the files and can unintentionally change/corrupt files that I wasn't even planning to change. I would prefer to extract only sources that I'm going to modify and then work with them. So, is there a way to tell git that I only going to work with specific sources, and so, that only these sources would be extracted to the working directory? Note, that this is not a partial checkout or something like this. I'm ok to checkout the whole branch. It's more about organising a working folder. Thanks.
© Stack Overflow or respective owner