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

Versioning configuration files on a server: fatal: Unable to create '//etc/.git/index.lock': No such file or directory

From
ASAlbert Strasheim <fullung@gmail.com>
Date
Nov 17, 2010, 06:24 UTC
Message-ID
<AANLkTi=UPWTeZP9uF+FGtsSs7wH3AmwdeLtsPJQnKvez@mail.gmail.com>
Hello all
I'm trying to use git to version all the configuration files on a server:

su cd / git init cd / touch k git add k #this works cd /etc git add hosts

This fails with:
fatal: Unable to create '//etc/.git/index.lock': No such file or directory
I'm running git-1.7.3.2-1.fc14.x86_64.
Is there any way to convince git to work in this scenario?
Regards
Albert
Next: Matthijs Kooijman
Message 1 of 8 in “Versioning configuration files on a server: fatal: Unable to create '//etc/.git/index.lock': No such file or directory”
  1. Albert StrasheimNov 17, 2010
  2. Matthijs KooijmanNov 17, 2010
  3. Matthijs KooijmanNov 18, 2010
  4. Santi BéjarNov 18, 2010
  5. Nguyen Thai Ngoc DuyNov 18, 2010
  6. Nguyen Thai Ngoc DuyNov 18, 2010
  7. Matthijs KooijmanNov 18, 2010
  8. Matthijs KooijmanNov 18, 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.