git/list[1] front-page[2] threads[3] people[4] search[5] about
 

Re: Is there a way to trim old SHAs from a git tree (so it's not so large)?

From
Jakub Narebski <jnareb@gmail.com>
Date
Nov 21, 2006, 22:53 UTC
Message-ID
<ejvvts$9eu$1@sea.gmane.org>
In-Reply-To
<45638212.8030501@freescale.com>
Timur Tabi wrote:
> Johannes Schindelin wrote:
Show 23 quoted lines
>> Try "git clone --depth 1 <url>". This will cut each ancestor chain after 
>> one ancestor (IIRC).
> 
> I think you mean git-clone.sh instead of git-clone.  If I do the above command, 
> I get:
> 
> $ ./git clone --depth 1 git://127.0.0.1/temp/u-boot-83xx/
> Usage: /home/b04825/bin/git-clone [--template=<template_directory>] 
> [--use-separate-remote] [--reference <reference-repo>] [--bare] [-l [-s]] [-q] 
> [-u <upload-pack>] [--origin <name>] [-n] <repo> [<dir>]
> 
> However, git-clone.sh is not quite working either.  I had to run git-daemon on 
> my machine, because git-clone.sh doesn't like the http protocol, and my firewall 
> blocks everything but that.  So I cloned a repo, started git-daemon, and I tried 
> this:
> 
> $ ./git-clone.sh --depth 1 git://127.0.0.1/temp/u-boot-83xx
> usage: git-fetch-pack [--all] [-q] [-v] [-k] [--thin] [--exec=upload-pack] 
> [host:]directory <refs>...
> fetch-pack from 'git://127.0.0.1/temp/u-boot-83xx/' failed.
> 
> A regular git-clone of git://127.0.0.1/temp/u-boot-83xx works, so I think 
> there's something wrong with git-clone.sh or my invocation thereof.

Erm, you have to compile git with "make bindir=$(pwd)" to run it from working directory. Or just install it somewhere not over git, like /usr/local/ or /home/local/.

-- 
Jakub Narebski
Warsaw, Poland
ShadeHawk on #git
Previous: Timur TabiNext: Johannes Schindelin
Message 15 of 19 in “Is there a way to trim old SHAs from a git tree (so it's not so large)?”
  1. Timur TabiNov 15, 2006
  2. Shawn PearceNov 15, 2006
  3. Timur TabiNov 15, 2006
  4. Shawn PearceNov 15, 2006
  5. Thomas KolejkaNov 17, 2006
  6. Timur TabiNov 21, 2006
  7. Shawn PearceNov 21, 2006
  8. Timur TabiNov 21, 2006
  9. Shawn PearceNov 21, 2006
  10. Timur TabiNov 21, 2006
  11. Shawn PearceNov 21, 2006
  12. Timur TabiNov 21, 2006
  13. Johannes SchindelinNov 21, 2006
  14. Timur TabiNov 21, 2006
  15. Jakub NarebskiNov 21, 2006
  16. Johannes SchindelinNov 21, 2006
  17. Timur TabiNov 21, 2006
  18. Jakub NarebskiNov 21, 2006
  19. Johannes SchindelinNov 21, 2006

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.