On 22 April 2015 at 06:07, Tanveer Malik <tanmalik...@gmail.com> wrote:
> Ahh sorry, if I was not very clear in my question. What actually I am
> looking for is a way to get the working copies of the files different from
> its parent branch e.g., I create a branch 'develop' from 'master', then work
> on files say style.css and on another file called abc.php. Now I want a way
> to get only these two files [style.css, abc.php] in the working directory.

Just to clarify:

You have a repo with a branch called `master`.  When checking it out you get

- style.css
- abc.php
- foo.php and a bunch of other files that make up the rest of your project

then you want to create a branch, `develop`, and when you check it out
you only want to get the two files

- style.css
- abc.php

is that a correct understanding?

I haven't used it myself, but I suspect what you are looking for is
called "sparse checkout".  A search for "git sparse checkout" leads to
quite a few explanations of it.


Magnus Therning                      OpenPGP: 0xAB4DFBA4
email: mag...@therning.org   jabber: mag...@therning.org
twitter: magthe               http://therning.org/magnus

You received this message because you are subscribed to the Google Groups "Git 
for human beings" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to git-users+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to