Re: does anything like cvs export exist in git?

!MAILaRCHIVE_VOTE_RePLACE
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
To: Mark Struberg <struberg@...>
Cc: <git@...>
Date: Thursday, August 14, 2008 - 5:26 pm

Mark Struberg <struberg@yahoo.de> wrote:

You can use:

  git archive --tar HEAD | (mkdir ../dest;cd ../dest;tar xf -)

Or you can do something even more bizzare like:

  export GIT_INDEX_FILE=/tmp/$$.index;
  export GIT_WORK_TREE=../dest;
  export GIT_DIR=.git;
  git read-tree HEAD &&
  git checkout-index --force --all &&
  rm $GIT_INDEX_FILE

-- 
Shawn.
--
To unsubscribe from this list: send the line "unsubscribe git" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
does anything like cvs export exist in git?, Mark Struberg, (Thu Aug 14, 5:20 pm)
Re: does anything like cvs export exist in git?, Petr Baudis, (Thu Aug 14, 6:11 pm)
Re: does anything like cvs export exist in git?, Mark Struberg, (Thu Aug 14, 6:31 pm)
Re: does anything like cvs export exist in git?, Shawn O. Pearce, (Thu Aug 14, 5:26 pm)
Re: does anything like cvs export exist in git?, Mark Struberg, (Thu Aug 14, 6:09 pm)
Re: does anything like cvs export exist in git?, Shawn O. Pearce, (Thu Aug 14, 6:12 pm)
Re: does anything like cvs export exist in git?, Mark Struberg, (Thu Aug 14, 6:44 pm)
Re: does anything like cvs export exist in git?, Matthieu Moy, (Thu Aug 14, 5:23 pm)
Re: does anything like cvs export exist in git?, Mark Struberg, (Thu Aug 14, 5:46 pm)