On Wed, 4 Dec 2013 05:53:55 -0800 (PST)
tripatjeet singh <tripatli...@gmail.com> wrote:

> I am new to GIT. There's a challenge that i'm currently facing after 
> migration from WINCVS to GIT. The problem here is I need to
> pull/fetch a specific branch (and NOT clone the entire repository)
> from the repository to a particular location on the AIX server.
[...]
> I am not able to achieve the same functionality using GIT. I DO NOT
> want to clone the entire repository on the AIX server instead I just
> want to fetch/pull a specific branch contents on the server.
[...]

Consider shallow cloning -- a call

    git checkout --depth 1 --branch foo

would fetch just the tip commit of a branch named "foo" plus all the
objects necessary to represent this commit which is essentially what
you want.

In real life this call will fetch more than just the tip commit due to
a bug (or misfeature?) in the implementation [1], [2] but I reckon you
could live with this until it's fixed.

1. http://thread.gmane.org/gmane.comp.version-control.git/212912
2. http://thread.gmane.org/gmane.comp.version-control.git/212946/focus=213023

-- 
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/groups/opt_out.

Reply via email to