What are the different ways you can refer to a commit?
Answer Posted / Daud Ali
In Git, you can refer to a commit by its hash (a unique 40-character string), short hash (abbreviated version of the hash), branch name (if the commit is part of that specific branch), tag (a named reference to a commit), or by using relative references like 'HEAD~n' which refers to the nth parent commit of the current HEAD.
| Is This Answer Correct ? | 0 Yes | 0 No |
Post New Answer View All Answers