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

Re: howto to run git without a master branch

From
Andreas Schwab <schwab@linux-m68k.org>
Date
Mar 10, 2014, 09:30 UTC
Message-ID
<874n36h04f.fsf@igel.home>
In-Reply-To
<531CE837.1080504@gmail.com>
Ilya Bobyr <ilya.bobyr@gmail.com> writes:
> There is a "git remote set-head" to manipulate HEAD in a remote repository.

This is misleading. The command does nothing on the remote side, it only changes the refs/remote namespace in your repository. The purpose is to change what branch the ref remote/<name> resolves to, ie. without explicit branch name.

(The only command that manipulates the remote repository is git push, and the plumbing beneath that. To change HEAD in a remote repository you need filesystem access to it.)

Andreas.
-- 
Andreas Schwab, schwab@linux-m68k.org
GPG Key fingerprint = 58CA 54C7 6D53 942B 1756  01D3 44D5 214B 8276 4ED5
"And now for something completely different."
Previous: Carlos Pereira
Message 7 of 7 in “howto to run git without a master branch”
  1. Carlos PereiraMar 8, 2014
  2. Torsten BögershausenMar 9, 2014
  3. Carlos PereiraMar 9, 2014
  4. KevinMar 9, 2014
  5. Ilya BobyrMar 9, 2014
  6. Carlos PereiraMar 9, 2014
  7. Andreas SchwabMar 10, 2014

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.