Is there a way to refer to a child commit of the current detached HEAD?
问题 I know how to refer to a parent commit as HEAD^ . But is it possible to refer to a child commit in a similar way? 回答1: The answer is both no and yes, or perhaps "this question makes no sense", depending on what you mean . Your question refers specifically to "a child commit of the current detached HEAD". This is why the question makes no sense, at least not without additional information. As Tim Biegeleisen noted in a comment, when you check out by branch name, this puts you on the tip of the