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

Does a `git pull' write to the origin repository in any way?

From
BRBrett Ryan <brett.ryan@gmail.com>
Date
Oct 22, 2008, 09:00 UTC
Message-ID
<a65d095e0810220200q42936427o917cdac067d04135@mail.gmail.com>

Greetings, the reason I ask this question is because my pattern of development is to create local source git repositories on my home directory, then pull them to the central location. I found myself getting the error `unable to create temporary sha1 filename .git/objects/11: File exists' which after investigation found that there were paths in `.git/objects/' owned by root which is who I use to do the pull from my home directory using sudo. `git log' shows all commits as me.

Typical dev cycle.

cd ~/src/appl_bin # make mods git commit -a cd $DEST sudo git pull ~/src/appl_bin linux_test

Thankyou -Brett

Next: Marc Weber
Message 1 of 3 in “Does a `git pull' write to the origin repository in any way?”
  1. Brett RyanOct 22, 2008
  2. Marc WeberOct 22, 2008
  3. Brett RyanOct 22, 2008

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.