Trending Technology Machine Learning, Artificial Intelligent, Block Chain, IoT, DevOps, Data Science

Recent Post

Codecademy Code Foundations

Search This Blog

Creating Git Repository

Create a new Git Repository :
  • 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:
            - Git Basics
            - 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
        - Create a bare repository
        - 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 :
  1. Create a New Project/Folder
  2. Browse to new Project
  3. 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

Popular Articles