all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* In git, how does one revert a single file with merge conflicts in it?
@ 2015-02-02 12:00 Alan Mackenzie
  2015-02-02 13:22 ` Andreas Schwab
                   ` (2 more replies)
  0 siblings, 3 replies; 10+ messages in thread
From: Alan Mackenzie @ 2015-02-02 12:00 UTC (permalink / raw)
  To: emacs-devel

Hello, Emacs.

I'm attempting to backport a bug fix from master to emacs-24, following
the procedure in .../admin/notes/git-workflow.

On doing
   $ git cherry-pick -xe <Commit Id>
, I get a half error message: "error: could not apply f3f7acc... ...".
Further investigation reveals that the cause is conflicts in a ChangeLog
file.  No surprises there.

So, how do I revert ChangeLog to get rid of the conflicts?  I've tried
   $ git checkout lisp/ChangeLog
, but this just gives the puzzling error message "error: path
'lisp/ChangeLog' is unmerged".  Isn't git great?

How do I revert a file in git?

TIA.

-- 
Alan Mackenzie (Nuremberg, Germany).



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

end of thread, other threads:[~2015-02-03 22:36 UTC | newest]

Thread overview: 10+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-02-02 12:00 In git, how does one revert a single file with merge conflicts in it? Alan Mackenzie
2015-02-02 13:22 ` Andreas Schwab
2015-02-02 19:29   ` Alan Mackenzie
2015-02-03  9:04     ` Andreas Schwab
2015-02-03  9:26       ` David Kastrup
2015-02-03 22:36     ` Steinar Bang
2015-02-02 16:05 ` Eli Zaretskii
2015-02-02 19:32   ` Alan Mackenzie
2015-02-02 17:40 ` Stefan Monnier
2015-02-02 19:37   ` Alan Mackenzie

Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.