TestingDocs.com
Software Testing website
  • Automation
    • Selenium
    • JBehave Framework
  • Tutorials
    • MySQL Tutorials
    • Testlink
    • Maven
    • Git
  • IDEs
    • IntelliJ IDEA
    • Eclipse
  • Flowcharts
    • Flowgorithm
    • Raptor
  • About

Git

Create a new Git Repository

Git Tutorials

Overview

Repositories are like directories that hold the project files. We can create a new repository on both the GitHub website and on local machine using the Git command-line client. Let’s create a new repository using the git command line.

GitHub Repository

https://www.testingdocs.com/questions/how-to-create-a-repository-on-github/

New Git Repository

Steps to create a new repository are as follows

  • Launch the Git command-line tool
  • ( https://www.testingdocs.com/installing-git-on-windows-10/)
  • Create a new project directory.
  • Issue git init command to initialize the repository.

new Git Repository

 

git init

git init command creates a .git folder within the project directory. For example, in the above case:

~\testingdocs\SampleProject\.git

This directory has the information to track the changes to the project. Sample .git folder on Windows machine would like as shown:

 

.git Folder Sample Windows

 

Common error

https://www.testingdocs.com/questions/how-to-fix-fatal-not-a-git-repository-error/

 

Git Tutorials on this website:

https://www.testingdocs.com/git-tutorials/

More information on Git, official website:

https://git-scm.com/

 

 

Related Posts

branching

Git /

What is Branching?

Git Install on Linux

Git /

Install Git on Ubuntu Linux

Version_Control_Centralized

Git /

Overview of Version Control Systems

Git Website

Git /

Getting Started with Git Version Control

Install Git on Windows 10

Git /

Install Git on Windows 10

‹ Clone an existing Git Repository› Set Up Git Bash On Windows 10

Recent Posts

  • Update draw.io on Windows
  • Install RAPTOR Avalonia on CentOS
  • Download RAPTOR Avalonia Edition on Windows
  • npm doctor command
  • Build & Run CLion Project
  • Create New CLion C Project on Windows
  • Configure CLion Toolchains on Windows
  • Launch CLion IDE on Windows
  • Activate CLion IDE
  • CLion IDE for C/C++ Development

Back to Top

Links

  • Contact
  • Privacy Policy
  • Cookie Policy

www.TestingDocs.com