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 |
Name a few git commands and explain their usage.
Why is it desirable to create an additional commit rather than amending an existing commit?
What is the function of ‘GIT PUSH’ in GIT?
How git instaweb is used?
What are the different ways you can refer to a commit?
What is git fork? How to create tag?
How to rebase master in git?
What commands will you use to bring a new feature to the main branch?
What is subgit?
What is a distributed vcs?
What is difference between fork and branch? How to create tag?
How can you use git bisect to determine the source of a (regression) bug?