Git repository?

783    Asked by RadhikaPatel in Devops , Asked on Nov 21, 2019
Answered by Radhika Patel

Git repository is just a file location where you are storing all the files related to your project.

Let’s say if you are developing an application, whatever you are coding, all the different service modules for your application will be dumped in your Git repository once you commit & push.

When you are working with Git, you have two repositories - Local & Remote.

Local repository: It is just a file location residing in your system. When you git commit your code, a version/snapshot is created in your local repo.

Remote repository: A remote repository generally lies somewhere outside your system, on a remote machine. This is very important when you are working with multiple people. This is the place where everyone will be sharing their code.

You can add files in your remote repo by git push from your local repository.



Your Answer

Interviews

Parent Categories