Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...


What are the different ways you can refer to a commit?



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

Post New Answer

More Git Interview Questions

In git how do you revert a commit that has already been pushed and made public?

1 Answers  


What is the purpose of branching in GIT?

1 Answers  


What are git repository hosting services you used?

1 Answers  


What is the difference between git and github?

1 Answers  


What is git bisect and what is its purpose?

1 Answers  


What is subgit and why is it used?

1 Answers  


How can you create a repository in Git?

1 Answers  


What is a commit message?

1 Answers  


What is git bisect? How can you use it to determine the source of a (regression) bug?

1 Answers  


What is the difference between ‘git remote’ and ‘git clone’?

1 Answers  


What is the difference between GIT and SVN?

1 Answers  


How to squash or fixup commits?

1 Answers  


Categories