Note: Whenever we would like to interact with Git, we will be interacting using Git commands through this Git Bash window. This opens up a command prompt like a window, which allows us to interact with Git using the Git commands. On a Windows-based system, we need to right-click on the folder (we would like to be tracked by Git), and then click on “Git Bash Here”. In order to initialize a folder into a Git repository: In simple terms, Git converts a folder into a repository so that its contents can be tracked by it. Initializing a Git Repositoryīefore we go ahead and start tracking our files using Git, we need to initialize Git for the folder which we want Git to monitor.
Once Git has been downloaded, you can refer to this guide on how to have it installed.
Download and Install Gitĭownloading and Installing Git is a fairly straightforward process. The repo present on the local computer is referred to as a local repository, and the repository located on a hosted Git platform is referred to as a remote repository. git folder, Git will not identify this folder as a repo nor track its contents. This folder contains all the files and folders required by Git to keep track of all the changes done to the files within this repo. Usually, the files that are present within the repository contain source code. It is also known as a repo, in simple terms.Ī repo may have multiple files and sub folders present within it. What is a Repository in Git?Ī repository is a folder whose contents are tracked by Git. Some of the popular Git hosted service providers are:Īll of them offer a similar sort of functionality.
It not only keeps track of what files were changed, but it also keeps tracks ofįor you to share and work collaboratively with other developers, you require access to a Git-based hosted service. It also allows multiple developers to share and work collaboratively on the same set of files, without conflicting with each other’s work. Now, what the heck is a Version Control System (VCS)?Ī VCS monitors and keeps track of all the changes done to the files that are being monitored by it. So let’s begin by understanding, what is Git?
I promise to explain the topics in the most simplified way I can.