From: Avery Pennarun Date: Tue, 03 Nov 2009 15:33:25 GMT Subject: Re: Common setting for interoperability repo across windows and unix? Message-ID: <32541b130911030733i734b9f6doc366934873bf7713@mail.gmail.com> In-Reply-To: On Tue, Nov 3, 2009 at 11:09 AM, Dilip M wrote: > I have repo in unix. The same repo is cloned onto windows.I have set > "core.autocrlf=input" in both the repos. > > When I do some change to a file in windows and push to unix repo, I > get file deleted If I do "git status"? > > What is the setting to be done if I want an repo to be > access/push/pulled across windows and unix? It sounds like you are pushing to the currently-checked-out branch of a non-bare repo. If this is true, you should do one of the following: - have a central "bare" repo (created with git init --bare) and push/pull from that rather than directly - pull, rather than push, when transferring data between repos. You can pull from a Windows box by running git-daemon on that box from the command line. (It's easier than it sounds.) Have fun, Avery