git.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* How to force a pull to succeed?
@ 2017-05-16  2:17 Jeffrey Walton
  2017-05-16  3:27 ` Junio C Hamano
  0 siblings, 1 reply; 6+ messages in thread
From: Jeffrey Walton @ 2017-05-16  2:17 UTC (permalink / raw)
  To: Git List

I scp'd a file to another machine for testing. The change tested OK,
so I checked it in on the original machine.

I'm now on the remote machine, and I'm trying to pull the same exact
file that exists on both local and remote. Git won't allow me to do
it, even with -f.

I'd really like -f (or another switch) to work as expected. I don't
like issuing extra command or extra typing.

How do I force the pull to succeed?

Thanks in adavnce.

**************

qotom:cryptopp$ git pull
Updating 30ac06d..30ac53f
error: Your local changes to the following files would be overwritten by merge:
        datatest.cpp
Please commit your changes or stash them before you merge.
Aborting
qotom:cryptopp$ git pull -f
Updating 30ac06d..30ac53f
error: Your local changes to the following files would be overwritten by merge:
        datatest.cpp
Please commit your changes or stash them before you merge.

^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2017-05-16  6:59 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2017-05-16  2:17 How to force a pull to succeed? Jeffrey Walton
2017-05-16  3:27 ` Junio C Hamano
2017-05-16  3:32   ` Jeffrey Walton
2017-05-16  3:42     ` Junio C Hamano
2017-05-16  3:47       ` Jeffrey Walton
2017-05-16  6:59         ` Jeff King

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).