Does a `git pull' write to the origin repository in any way?
- From
- Brett 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