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

Re: [howto] Kernel hacker's guide to git, updated

From
EMErik Mouw <erik@harddisk-recovery.com>
Date
Sep 30, 2005, 12:07 UTC
Message-ID
<20050930120739.GB9328@harddisk-recovery.com>
In-Reply-To
<433D1E5D.20303@pobox.com>
On Fri, Sep 30, 2005 at 07:15:41AM -0400, Jeff Garzik wrote:
Show 9 quoted lines
> >automatically.  Running the following one-liner every once in a
> >while would sync your set of tags with Linus:
> >
> >git fetch origin `git-ls-remote --tags origin | sed -ne 
> >'s|^.*refs/tags/|tag |p'`
> 
> that's way too long and convoluted to deal with.  Once the 'git fetch 
> --tags' changes make it into the official repository (are they there 
> already?), I'll remove all the remaining direct references to running rsync.

FYI, the rsync command to get the tags blows away .git/branches/origin, so on the next "git pull", git will tell you "Where do you want to fetch from today?".

In the mean time, better make it two separate rsync commands (sorry for the long lines):

rsync -a --delete --verbose --stats --progress \
  rsync://rsync.kernel.org/pub/scm/linux/kernel/git/torvalds/linux-2.6.git/tags/ \
  .git/tags/
rsync -a --delete --verbose --stats --progress \
  rsync://rsync.kernel.org/pub/scm/linux/kernel/git/torvalds/linux-2.6.git/heads/ \
  .git/heads/
Erik
-- 
+-- Erik Mouw -- www.harddisk-recovery.com -- +31 70 370 12 90 --
| Lab address: Delftechpark 26, 2628 XH, Delft, The Netherlands
Previous: Alberto PatinoNext: Jeff Garzik
Message 37 of 40 in “[howto] Kernel hacker's guide to git, updated”
  1. Jeff GarzikSep 29, 2005
  2. David LeimbachSep 29, 2005
  3. Alberto PatinoSep 29, 2005
  4. David LeimbachSep 29, 2005
  5. Oliver NeukumSep 29, 2005
  6. Jon LoeligerSep 29, 2005
  7. Oliver NeukumSep 29, 2005
  8. Junio C HamanoSep 30, 2005
  9. Oliver NeukumSep 30, 2005
  10. Linus TorvaldsSep 30, 2005
  11. Dave JonesSep 29, 2005
  12. Anton AltaparmakovSep 29, 2005
  13. Dave JonesSep 29, 2005
  14. Linus TorvaldsSep 29, 2005
  15. Linus TorvaldsSep 29, 2005
  16. Dave JonesSep 29, 2005
  17. Linus TorvaldsSep 29, 2005
  18. Anton AltaparmakovSep 29, 2005
  19. Linus TorvaldsSep 29, 2005
  20. Anton AltaparmakovSep 29, 2005
  21. Junio C HamanoSep 29, 2005
  22. Johannes SchindelinSep 30, 2005
  23. Elfyn McBratneySep 29, 2005
  24. Linus TorvaldsSep 29, 2005
  25. Dave JonesSep 29, 2005
  26. Jeff GarzikSep 29, 2005
  27. Junio C HamanoSep 29, 2005
  28. Jeff GarzikSep 30, 2005
  29. Junio C HamanoSep 30, 2005
  30. Jeff GarzikSep 30, 2005
  31. Junio C HamanoOct 2, 2005
  32. Linus TorvaldsSep 30, 2005
  33. Junio C HamanoOct 1, 2005
  34. Oliver NeukumSep 30, 2005
  35. Jeff GarzikSep 30, 2005
  36. Alberto PatinoSep 30, 2005
  37. Erik MouwSep 30, 2005
  38. Jeff GarzikSep 30, 2005
  39. Francois RomieuSep 30, 2005
  40. Chuck LeverSep 29, 2005

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.