git.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Avery Pennarun <apenwarr@gmail.com>
To: Dilip M <dilipm79@gmail.com>
Cc: git <git@vger.kernel.org>
Subject: Re: Common setting for interoperability repo across windows and unix?
Date: Tue, 3 Nov 2009 11:33:25 -0400	[thread overview]
Message-ID: <32541b130911030733i734b9f6doc366934873bf7713@mail.gmail.com> (raw)
In-Reply-To: <c94f8e120911030709h29c5b8edr53df269632990e81@mail.gmail.com>

On Tue, Nov 3, 2009 at 11:09 AM, Dilip M <dilipm79@gmail.com> 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

  reply	other threads:[~2009-11-03 15:33 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-11-03 15:09 Common setting for interoperability repo across windows and unix? Dilip M
2009-11-03 15:33 ` Avery Pennarun [this message]
2009-11-04 21:45   ` Anthony W. Youngman
2009-11-04 22:59     ` Avery Pennarun
2009-11-04 23:01       ` Shawn O. Pearce
2009-11-04 23:10         ` Erik Faye-Lund
2009-11-04  0:46 ` Vietor Liu

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=32541b130911030733i734b9f6doc366934873bf7713@mail.gmail.com \
    --to=apenwarr@gmail.com \
    --cc=dilipm79@gmail.com \
    --cc=git@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).