From: Mark Burton <markb@ordern.com>
To: git@vger.kernel.org
Subject: Re: Issue updating files during a checkout from a remote push
Date: Thu, 6 Nov 2008 17:53:05 +0000 (UTC) [thread overview]
Message-ID: <loom.20081106T174246-381@post.gmane.org> (raw)
In-Reply-To: 09C2A669-2B99-4490-9C95-FCCD76C03D61@idibu.com
Hi Steve,
I think you are making the same mistake as I did when I first started using git.
You can't push to "master" from a remote repository because if you do, the index
and working files associated with the receiving repository look as if they have
been changed because they are out of date WRT the repository.
If you want to push to a repository that has working files associated with it,
push to a remote branch in that repository and then merge the contents of the
remote branch into the working files. I.e. don't push to "master", push to
"remotes/somename/master" and then merge somename/master into the master branch.
That's what I do now to migrate changes from my satellite development machines
to my master machine.
Cheers,
Mark
next prev parent reply other threads:[~2008-11-06 17:54 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-11-06 17:04 Issue updating files during a checkout from a remote push Steve Walker
2008-11-06 17:17 ` Steve Walker
2008-11-06 17:53 ` Mark Burton [this message]
2008-11-07 21:59 ` Jeff King
2008-11-07 8:21 ` Andreas Ericsson
2008-11-07 21:56 ` Jeff King
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=loom.20081106T174246-381@post.gmane.org \
--to=markb@ordern.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