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

Re: Common setting for interoperability repo across windows and unix?

From
Avery Pennarun <apenwarr@gmail.com>
Date
Nov 3, 2009, 15:33 UTC
Message-ID
<32541b130911030733i734b9f6doc366934873bf7713@mail.gmail.com>
In-Reply-To
<c94f8e120911030709h29c5b8edr53df269632990e81@mail.gmail.com>
On Tue, Nov 3, 2009 at 11:09 AM, Dilip M <dilipm79@gmail.com> wrote:
Show 8 quoted lines
> 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
Previous: Dilip MNext: Anthony W. Youngman
Message 2 of 7 in “Common setting for interoperability repo across windows and unix?”
  1. Dilip MNov 3, 2009
  2. Avery PennarunNov 3, 2009
  3. Anthony W. YoungmanNov 4, 2009
  4. Avery PennarunNov 4, 2009
  5. Shawn O. PearceNov 4, 2009
  6. Erik Faye-LundNov 4, 2009
  7. Vietor LiuNov 4, 2009

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.