You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
On Windows in `cmd.exe`, `^` is a special character and needs to be treated differently. You can either double it or put the commit reference in quotes:
215
+
216
+
[source,console]
217
+
----
218
+
$ git show HEAD^ # will NOT work on Windows
219
+
$ git show HEAD^^ # OK
220
+
$ git show "HEAD^" # OK
221
+
----
222
+
223
+
====
224
+
210
225
You can also specify a number after the `^` – for example, `d921970^2` means ``the second parent of d921970.''
211
226
This syntax is only useful for merge commits, which have more than one parent.
212
227
The first parent is the branch you were on when you merged, and the second is the commit on the branch that you merged in:
0 commit comments