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

Re: howto to run git without a master branch

From
CPCarlos Pereira <jose.carlos.pereira@ist.utl.pt>
Date
Mar 9, 2014, 23:58 UTC
Message-ID
<531D0043.5060507@ist.utl.pt>
In-Reply-To
<531CE837.1080504@gmail.com>
> There is a "git remote set-head" to manipulate HEAD in a remote 
> repository.

Thanks, that is useful (like git symbolic-ref HEAD master-x suggested by Kevin, much better than editing the text file)

> I agree that this might be viewed as a user experience issue.
> But I can not come up with a possible solution.  Can you?

The branch where the user was when he/she pushed the repo to the server? it would be his/her responsibility to checkout the proper branch before pushing... if that was not good enough than he/she could always use git remote set-head... my point is: pointing to a bad branch that exists seems better than pointing to a branch that does not exist...

Anyway I agree this is not important, as we can easily change HEAD.
> I do not think there should be any issues.
Thank you very much for your answers,
Carlos
Previous: Ilya BobyrNext: Andreas Schwab
Message 6 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.