問題:
ref^
refers to the commit before ref
. ref^
指的是ref
之前的提交。 What about getting the commit after ref
?在ref
之後獲得提交怎麼樣?
For example, if I git checkout 12345
, how do I check out the next commit?例如,如果我git checkout 12345
,我如何檢查下一次提交?
PS: Yes, Git's a DAG node pointer struct tree whatever. PS:是的,Git 是一個DAG節點指針結構樹。 How do I find the commit after this one?在此之後我如何找到提交?
解決方案:
參考一: https://stackoom.com/question/9Uss參考二: How do I find the next commit in Git? (child/children of ref)