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 is the function of ‘git checkout’ in git?



What is the function of ‘git checkout’ in git?..

Answer / Anant Prasad Vema

'Git checkout' allows you to switch branches, move between different versions of a file (with -b for creating a new branch), or recover a previous commit (using the commit hash). It also creates or updates the working directory and staging area to match the state of the selected branch or commit.

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More Git Interview Questions

How will you know in git if a branch has already been merged into master?

1 Answers  


What is the difference between git pull and git fetch?

1 Answers  


What is Subgit? Why to use Subgit?

1 Answers  


What is ‘head’ in git and how many heads can be created in a repository?

1 Answers  


Name some git commands and also explain their functions?

1 Answers  


How to squash or fixup commits?

1 Answers  


What is the purpose of branching in GIT?

1 Answers  


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

1 Answers  


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

1 Answers  


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

1 Answers  


What is git and why do we use it?

1 Answers  


What is git fork? How to create tag?

1 Answers  


Categories