Time for action — initializing a Git repository
To initialize a Git repository from your existing project or source files, which are not under version control yet, you can go through the following steps:
- Right-click on the project
Chapter6, and select Versioning | Initialize Git Repository from the context menu.
- Now, specify the directory path where the repository will be created in the Initialize a Git Repository dialog box. In our case, we choose the same project path.
- Click on OK and you can check the repository creation progress or status in the Output window (Ctrl+4) as follows:
.git subdirectory will be created under your project directory, ...