git a/xyz or b/xyz
- From
- Fabrice Creuzot <code@luigifab.fr>
- Date
- Jun 18, 2022, 10:45 UTC
- Message-ID
- <b4f40821-8592-1a35-8b60-219fd7e29e9f@luigifab.fr>
Hello
When we are reading a "git diff", all paths are prefixed with "a/" and "b/". Example:
diff --git a/xyz index 4aa4b5230..1c2b8b69e 100644 --- a/xyz +++ b/xyz @@ -1,7 +1,7 @@ With my terminal, I double click on the path to select the full path for copy. Then, when I paste: "git log a/xyz", git says: unknown revision or path not in the working tree Ok, I need to remove the "a/" or "b/". But, is git can understand that "a/xyz" is "xyz" because "a/xyz" does not exist? Thanks