On Fri, 14 Jun 2013 17:00:59 -0500
Deanna Delapasse <ddelapa...@gmail.com> wrote:


> > One thing I forgot to mention, is that it's pretty easy to reset the
> > work tree after a checkout to discard all local changes by either
> > doing
> >
> > git reset --hard
> >
> > or
> >
> > git checkout -- .
> >
> > (the dot is significant -- it means the current directory).
> >

> This code is ONLY used one time, extracted, built and then deleted.

Then consider using the so-called "shallow cloning": when doing a clone
you can pass the --depth=1 command-line option to limit the number of
the history fetched to an absolute minimum, like this:

$ git clone --depth 1 -b master

would clone just the remote branch named "master" and fetch just the
amount of history needed to contain the master's tip commit.

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