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

Re: Maintaining an html branch

From
Jonathan Nieder <jrnieder@gmail.com>
Date
May 25, 2010, 19:21 UTC
Message-ID
<20100525192111.GA7279@progeny.tock>
In-Reply-To
<AANLkTimMVn8fMVBmfNi4vR3kk3cXF2gq0Y9Ij5w3cl15@mail.gmail.com>
Hi Christos,
Christos Trochalakis wrote:
> I would like to maintain an html branch for my repo, containing files
> under my '_site/' dir that is not version controlled.
[...]
> rm .git/html.index
> export GIT_INDEX_FILE=.git/html.index
[...]
Looks reasonable.  Way I suggest a simpler way?

If your goal is to publish an html branch with the rest of your branches, I would recommend using a separate local repository that pushes to the same remote repository[1].

If the goal is to stay under draconian disk quotas by not maintaining two local repositories, one with the web site checked out all the time, I suggest using contrib/workdir/git-new-workdir.

Hope that helps, Jonathan

[1] See http://thread.gmane.org/gmane.comp.version-control.git/142831/focus=142865 for an example.

Previous: Christos Trochalakis
Message 2 of 2 in “Maintaining an html branch”
  1. Christos TrochalakisMay 25, 2010
  2. Jonathan NiederMay 25, 2010

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.