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

How to share config and hooks ?

From
CSChristian Senkowski <csenkowski@gmx.de>
Date
May 27, 2009, 19:58 UTC
Message-ID
<4A1D9B4C.7030504@gmx.de>

I am searching for a way to share 'config' and hooks/* automatically. I'd like to change and commit them as normal files and every user cloning this repo should get those.

One way might be a little wrapper-script for git-clone which looks if repo/.gitconfig or repo/.githooks exist and copies then the files to repo/.git/[...]

But I am searching for a way to do this without any additional scripts.

Does anyone have an idea ? And what'd you say about implementing this (with a yes-please-copy-the-found-files/no-leave-them-alone - question) directly into the git-binary ?

Next: Johannes Schindelin
Message 1 of 3 in “How to share config and hooks ?”
  1. Christian SenkowskiMay 27, 2009
  2. Johannes SchindelinMay 27, 2009
  3. David AguilarMay 28, 2009

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.