Thread (1 message) 1 message, 1 author, 2016-06-15

Re: Confusing error message

From: Junio C Hamano <hidden>
Date: 2016-06-15 22:54:07

Phil Hord [off-list ref] writes:
I messed something up during a rebase in a moved file (probably
because I had rename detection turned off).  So now I want to fix it.

I think I have the commit amended right, but to be sure I want to diff
the old file and the new file.

  $ git diff newfile HEAD^:oldfile
  fatal: Path 'oldfile' exists, but not 'oldfile'.
  Did you mean 'HEAD^:oldfile' aka 'HEAD^:./oldfile'?
You can feed two blob object names to "git diff", but I do not think
there is any provision to compare a blob object and a file in the
working tree.
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help