0 votes
in Git by
explain In how many ways we can refer commits in GIT?

1 Answer

0 votes
by

In Git, each commit is extraordinarily recognized by a novel hash number. These hashes can be utilized to distinguish the related commit much of the time, (for example, when we attempt to check out a specific condition of the code utilizing the git checkout {hash} order).

Aside from this, Git dependably keep data on various nom de plumes to guide to a specific commit, known as refs. Likewise, every single label that we make in the repo turns into a ref (and that is actually why we can utilize labels rather than submit hashes in different git directions). Git dependably keeps up various extraordinary false names that change depending on the condition of the archive, for example, HEAD, FETCH_HEAD, MERGE_HEAD, and so forth.

Related questions

0 votes
asked Aug 16, 2020 in Git by RShastri
+1 vote
asked May 9, 2020 in DevOps by Robindeniel
...