DEV Community

Mindaugas Januška
Mindaugas Januška

Posted on • Edited on

Part 1: Create a new project on GitHub and clone it to your computer

Table Of Contents

Step 1: Login to your GitHub account

Login to your GitHub account and create a new GitHub repository:

Create new GitHub repo button

Step 2: Give a name of your new Github repository

Give a meaningful name to your new GitHub repo and configure other settings:

Create new GitHub repo settings

Step 3: Copy URL of your project

After the hit of the button Create repository you will be redirected to the new window.
Copy URL address of the project:

Git clone repository

Step 4: Clone GitHub repository to your computer

Open a terminal on your computer. Navigate to the folder you would like your project to live. Type following command in your terminal and hit enter:

git clone paste-a-code-you-copied-in-Step-3
Enter fullscreen mode Exit fullscreen mode

My command looks like that:

git clone https://github.com/mindaugas-pro/list-with-products.git
Enter fullscreen mode Exit fullscreen mode

Step 5: Open a project with code editor

Your project is ready to be maintained on your computer.
Open a project with your preferred code editor. In my case it is Visual Studio Code.
To open a project with Visual Studio code execute following commands in terminal:

cd list-with-products 
Enter fullscreen mode Exit fullscreen mode
code . 
Enter fullscreen mode Exit fullscreen mode

Summary

Congrats! You new project is ready to be maintained on your computer and to be stored in the remote repository on GitHub.

Top comments (0)