TestingDocs.com
Software Testing website
  • JBehave
  • Selenium
  • Testlink
  • Maven
  • Git
  • RAPTOR
  • Questions

Create a new Git Repository

Tweet
Pin it

Document Contents

  • Overview
  • GitHub Repository
  • New Git Repository
  • git init
  • Common error

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

Git /

What is Branching?

Git /

Install Git on Ubuntu Linux

Git /

Overview of Version Control Systems

Git /

Getting Started with Git Version Control

Git /

Installing Git on Windows 10

Tag Cloud

Agile Appium Tutorials C++ Eclipse Tutorials Git Tutorials IntelliJ Tutorials Java Java Tutorial JBehave Jenkins Jira Cloud JUnit Tutorial Maven Object-oriented Flowchart Python Tutorials Raptor Flowcharts Selenium IDE TestLink Tutorials

Random Posts

  • TestLink Bitnami Cloud Image
    Overview In this tutorial, we will see the steps

    Read more

  • Code Coverage Tools
    Overview Let’s look at some of the code coverage

    Read more

  • pCloudy Continuous Testing Cloud
    Overview pCloudy is a continuous testing cloud

    Read more

Latest Tweets

Tweets by @TestingDocs

Back to Top

TestingDocs.com

  • Privacy Policy
  • Cookie Policy
  • JBehave
  • Selenium
  • Testlink
  • Maven
  • Git
  • RAPTOR
  • Questions
www.TestingDocs.com | All Rights Reserved