What is a repository and how will you create it?

devquora
devquora

Posted On: Feb 22, 2018

 

A repository in GIT contains the “.GIT” directory, where the GIT stores all of its metadata for the repository. The content of “.GIT” directory remains private to GIT.
To create a repository first the user needs to create the directory for the project and then the user needs to run “GIT init” command. This command creates the GIT directory in the project directory without emptying the directory.

    Related Questions

    Please Login or Register to leave a response.

    Related Questions

    Git Interview Questions

    What is GIT and why do we use it?

    GIT is a Distributed Version Control System (DVCS) and Source Code Management System (SCMS) which can track changes to a..

    Git Interview Questions

    What are GIT stash and GIT stash drop?

    GIT stash:It takes the current state of working directory and index and pushes into the stack for later and returns to ..

    Git Interview Questions

    Name some GIT commands and also explain their functions?

    GIT diff – It shows the changes between commits, commits and working tree.GIT status – It shows the difference b..