Create a new Git Repository :
- Git Basics- In this Page we will learn How to create a new Git Repository.
- Before you proceed with this lecture it is very important that you have gone through the previous set of lectures on GIT here:
- Installing Git on Windows
- What is GIT and GitHub
- The purpose of Git is to manage a project, or a set of files, as they change over time. Git stores this information in a data structure called a repository.
- In short Git Repository is a collection of all project files along with their history.
- Create a new Git Repository
- We can create Git Repository using one of the three approaches enlisted below
- Initialize repository in an existing project directory
- Clone a remote repository from Github
Create a Bare Git Repository :
Create a Bare Git Repository for new project is three set process :
Create a Bare Git Repository for new project is three set process :
- Create a New Project/Folder
- Browse to new Project
- Initialize Git Repository for the Project
Step 1 : Create a New Project/Folder
Step 2 : Browse to New Project
Step 3 : Initialize Bare Git Repository for the Project
- Let us view the contents of the newly initialized Git repository by executing the command dir / ah
- View the content of the directory and note that a .git folder has been created therein.
No comments:
Post a Comment