Re: re-running merge on a single file
- From
Johannes Sixt <j.sixt@viscovery.net>
- Date
- Mar 12, 2010, 06:45 UTC
- Message-ID
- <4B99E309.2070603@viscovery.net>
- In-Reply-To
- <a038bef51003111633v5d5d418bu332b63bb3874e3ef@mail.gmail.com>
Chris Packham schrieb:
> $ git checkout --merge -- cpu/mpc83xx/start.S > $ git show :1:$(git rev-parse --show-prefix)cpu/mpc83xx/start.S > fatal: Path 'cpu/mpc83xx/start.S' is in the index, but not at stage 1. > Did you mean ':0:cpu/mpc83xx/start.S'?
Both of these work only as long as the index still records the conflicted state. If you (or one of your tools) has git-added the file, or you have git-checked-out some version of the file, the conflict stages are lost, and you must reset --hard and redo the entire merge.
-- Hannes