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

Repository specific config file

From
PRPekka Riikonen <priikone@iki.fi>
Date
Oct 7, 2007, 08:37 UTC
Message-ID
<Pine.NEB.4.64.0710070956340.12867@otaku.Xtrmntr.org>
Hello,

Has there been any discussion or considerations adding a repository specific config file that would be delivered to all cloned repositories automatically? This would allow the publisher of the repository to set up some default settings to all developers cloning the repository. This could be useful to set up things like default aliases to ease up the work, to set that all remote branches are tracked, to list the configurations of submodules (so that people don't have to run submodule init), etc.

User should still be able to add configurations that overlap with the remote configuration and user should be able to ignore everything that came from the parent. Using ~/.gitconfig and /etc/gitconfig doesn't always work well when the developers don't have access to the remote machine (other than to clone the repository). Maybe the simplest solution would be to just add .gitconfig to the repository itself.

 	Pekka
________________________________________________________________________
  Pekka Riikonen                                 priikone at silcnet.org
  Secure Internet Live Conferencing (SILC)       http://silcnet.org/
Next: Johannes Schindelin
Message 1 of 2 in “Repository specific config file”
  1. Pekka RiikonenOct 7, 2007
  2. Johannes SchindelinOct 7, 2007

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.