What are the different ways you can refer to a commit?
Answer / 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 |
In git how do you revert a commit that has already been pushed and made public?
What is the purpose of branching in GIT?
What are git repository hosting services you used?
What is the difference between git and github?
What is git bisect and what is its purpose?
What is subgit and why is it used?
How can you create a repository in Git?
What is a commit message?
What is git bisect? How can you use it to determine the source of a (regression) bug?
What is the difference between ‘git remote’ and ‘git clone’?
What is the difference between GIT and SVN?
How to squash or fixup commits?