Berra Sarı
3 min readAug 18, 2023

#1 GitHub Repository Creation: Step-by-Step Tutorial

Creating a GitHub repository requires some basic Git knowledge, but it’s a relatively easy process. This step-by-step tutorial will help you to quickly create a repository and store your code online.

##1.1 Prerequisites

Before creating a GitHub repository, please make sure you have the following items:

  • A GitHub account
  • Basic knowledge of the Git command-line

##1.2 Creating a Repository

To create a repository, follow these steps:

  • Log in to GitHub with your credentials
  • At the top of your profile page, click the “+” button and select “New Repository”
  • A new window will appear asking for the repository name. Type the name of your new repository
  • Select “Public” from the “Visibility” dropdown menu
  • Click “Create repository”

This will create the repository and store your code online.

##1.3 Adding Your Code

Once you have created the repository, you can start adding your code. For this, you will need to:

  • Download and install Git on your machine
  • If you haven’t already, add an SSH key to your GitHub account
  • Access the command line and navigate to the directory where your code is stored
  • Type the command “git add .” This will add all the files in the current directory to your repository
  • Commit the code using the command “git commit -m “”
  • Finally, push the code to your repository using the command “git push origin master”

###1.3.1 Source Links

##1.4 FAQ

###1.4.1 What is the difference between a public and private repository?

A public repository is accessible to anyone (including search engines) and can be cloned or forked by other GitHub users. In contrast, a private repository is only visible to the user who created it and requires an invitation for other users to access it.

###1.4.2 Does GitHub offer any storage space?

Yes, GitHub offers various storage plans depending on your needs. The plans range from 1GB of storage (free) to 10TB (paid). You can find more information about each plan here.

###1.4.3 How do I delete a repository?

To delete a repository, log into GitHub and navigate to the repository page. From there, click the “Settings” tab and scroll down to the “Danger Zone”. Click on the “Delete this Repository” button and confirm the deletion.

###1.4.4 How do I add collaborators to a repository?

To add collaborators to a repository, log into GitHub and navigate to the repository page. From there, click the “Settings” tab and select the “Collaborators” option from the left panel. Type in the username or email of the person you want to add and click “Add Collaborator”.

###1.4.5 Is there any way to improve the security of my repository?

Yes, there are several ways to improve the security of your repository. You can set up two-factor authentication for your account, restrict access to your repository by adding collaborators only, and use security scans to check your code for vulnerabilities. You can find more information about these security measures here.

No responses yet