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 a repository and how will you create it?



What is a repository and how will you create it?..

Answer / Sandeep Kumar Ram

A Git repository is a set of files that are tracked by Git. It stores the entire history of changes made to those files, including commits, branches, and tags.nnTo create a new Git repository, follow these steps:nn1. Initialize an existing directory as a Git repository using the command: `git init`.n2. Create a new file in the repository and make initial commit: `git add filename` followed by `git commit -m "Initial Commit"`

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More Git Interview Questions

What is a “conflict” in git and how is it resolved?

1 Answers  


What does ‘hooks’ comprise of in git?

1 Answers  


What is difference between fork and branch?

1 Answers  


What does commit object contain?

1 Answers  


What is the difference between rebasing and merge in git?

1 Answers  


What is ‘git status’ is used for?

1 Answers  


What is the difference between the ‘git diff ’and ‘git status’?

1 Answers  


What is a distributed vcs?

1 Answers  


What is git fork? How to create tag?

1 Answers  


What is subgit and why is it used?

1 Answers  


Mention the various git repository hosting functions.

1 Answers  


What is ‘head’ in git?

1 Answers  


Categories