From: Jakub Narebski Date: Wed, 24 Jan 2007 20:35:36 GMT Subject: Re: Problem with git push over :/path protocol (ssh) Message-ID: In-Reply-To: Daniel Barkalow wrote: >> So, if the developer then commits on his branch on machine 1, all his >> changes get undone.  This has happened to him consistently --- he is >> running git 1.4.4.1 throughout.  I just reproduced it using the above, >> and I am using 1.5.0-rc2 on machine 2, and 1.4.4.1 on machine 1. > > Git gets unhappy if you push into a branch that's checked out. It doesn't > update the index or working directory, so the state after the push looks > like the user reverted the patch in the working directory and updated the > index. So you usually push into _bare_ repository, or use fetch / pull instead. -- Jakub Narebski Warsaw, Poland ShadeHawk on #git