From: bill lam Date: Wed, 02 May 2012 14:25:36 GMT Subject: git pull and GIT_DIR Message-ID: <20120502142536.GA2609@debian.b2j> It appeared that a) cd /path/to && git pull git/https://.... will fetch and checkout latest changes to working tree. This is as expected. On the contrary b) GIT_DIR=/path/to/.git git pull git/https://.... will only update git repo, but leaving working tree untouched. Subsequent git status and git diff will indicate unstaged changes, apparently a commit that will revert the updated git repo. I have to do 'git reset --hard' to really update the working three. I'm not sure if this is an intended behavior or I missed something. -- regards, ==================================================== GPG key 1024D/4434BAB3 2008-08-24 gpg --keyserver subkeys.pgp.net --recv-keys 4434BAB3