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

Name a few git commands and explain their usage.

1 Answers  


Why is it desirable to create an additional commit rather than amending an existing commit?

1 Answers  


What is the function of ‘GIT PUSH’ in GIT?

1 Answers  


How git instaweb is used?

1 Answers  


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

1 Answers  


What is git fork? How to create tag?

1 Answers  


How to rebase master in git?

1 Answers  


What commands will you use to bring a new feature to the main branch?

1 Answers  


What is subgit?

1 Answers  


What is a distributed vcs?

1 Answers  


What is difference between fork and branch? How to create tag?

1 Answers  


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

1 Answers  


Categories