Reputation: 29
I have the following commits:
$ git log --oneline
67a48c4 (HEAD -> main) Add a line in toto.py
62430ad Add file tata
0447f39 Add file toto
But when I try to diff two of those commits I get an error:
$ git diff 62430ad7f5bbd2437969b4d9086f729c3a224c5a 0447f395630849f2c40f6c11939f1a4c4c811f73
fatal: ambiguous argument '62430ad7f5bbd2437969b4d9086f729c3a224c5a': unknown revision or path not in the working tree. Use '--' to separate paths from revisions, like this: 'git [...] -- [...]
What is the cause here?
Upvotes: 1
Views: 320
Reputation: 29
It's finally working. the issue was in the way i copied the IDs. I was using the short cut Ctrl + Shift + C but i don't know why eventhough i managed to copy the exact line something wrong was happening. Now i use the mouse or the Shift + Insert keys dans it works juste fine. Thank you everyone !
Upvotes: 1