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

RE: cache status after git pull

From
Luck, Tony <tony.luck@intel.com>
Date
Aug 25, 2005, 20:46 UTC
Message-ID
<B8E391BBE9FE384DAA4C5C003888BE6F043B9B85@scsmsx401.amr.corp.intel.com>
Show 9 quoted lines
>To set up "linus" short-hand to be updated with "master" branch
>head from Linus, you would do one of the following:
>
>  * Using new style shorthand
>
>    $ cat >$GIT_DIR/remotes/linus \
>    URL: http://www.kernel.org/pub/scm/linux/kernel/git/torvalds/linux-2.6.git/
>    Pull: master:linus
>    $ git fetch linus

This sounds like it does what I want ... so I'd like to confirm before wiring this into my scripts and fingers.

What I want is to get the latest from kernel.org...linus...master and update my .refs/heads/linus with the new SHA1.

I'd like to be able to do that without touching what is in my index, and without changing the state of any checked out files.

If that is what the above does, then you are my hero for today :-)
-Tony
Next: Junio C Hamano
Message 1 of 5 in “RE: cache status after git pull”
  1. Luck, TonyAug 25, 2005
  2. Fix pulling into the same branch.Junio C Hamano, Aug 26, 2005
  3. Johannes SchindelinAug 26, 2005
  4. Junio C HamanoAug 26, 2005
  5. Junio C HamanoAug 26, 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.