{"id":3426,"date":"2024-03-08T07:30:18","date_gmt":"2024-03-08T07:30:18","guid":{"rendered":"https:\/\/meetanshi.com\/blog\/create-a-github-repository\/"},"modified":"2025-05-21T16:40:27","modified_gmt":"2025-05-21T11:10:27","slug":"create-a-github-repository","status":"publish","type":"post","link":"https:\/\/meetanshi.com\/blog\/create-a-github-repository\/","title":{"rendered":"How to Create a GitHub Repository? &#8211; 3 Ways"},"content":{"rendered":"\n<p class=\"wp-block-paragraph\">A simple yet practical guide to help you understand a GitHub Repository and how you can create one.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">So, without any ado, let us get into this.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">What is a GitHub Repository?<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">A GitHub Repository is the most basic element of GitHub, where you can store your code, files, and every revision history of each file.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">A repository can have multiple collaborators, and this file can be kept public or private. The choice is yours.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">One of the key reasons to create a repository is<strong> better work management.<\/strong><\/p>\n\n\n\n<p class=\"wp-block-paragraph\">You and your team can better manage your work within the repository, have discussions, and share feedback without switching between different channels.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Now that you know what a repository is let us see how you can create one!<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">How to Create a GitHub Repository?<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">You can create a repository in GitHub in three ways:<\/p>\n\n\n\n<ol class=\"wp-block-list\">\n<li><a href=\"#manually\">Manual Method<\/a><\/li>\n\n\n\n<li><a href=\"#using-clone-url\">Import Using Clone URL<\/a><\/li>\n\n\n\n<li><a href=\"#using-desktop-app\">Use GitHub Desktop App<\/a><\/li>\n<\/ol>\n\n\n\n<h3 class=\"wp-block-heading\" id=\"manually\">Method 1: How to Add Repository in GitHub Manually?<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">Log into <a href=\"https:\/\/github.com\/login\" target=\"_blank\" rel=\"noreferrer noopener\">your account<\/a> and click <strong>Your repositories<\/strong> in the left menu.<\/p>\n\n\n<div class=\"wp-block-image\">\n<figure class=\"aligncenter size-full\"><img decoding=\"async\" src=\"https:\/\/meetanshi.com\/blog\/wp-content\/uploads\/2024\/03\/Your-repositories-tab.png\" alt=\"Your repositories tab\" class=\"wp-image-44005\"\/><\/figure>\n<\/div>\n\n\n<p class=\"wp-block-paragraph\">Click <strong>New<\/strong> on the top-right corner.<\/p>\n\n\n<div class=\"wp-block-image\">\n<figure class=\"aligncenter size-full\"><img decoding=\"async\" src=\"https:\/\/meetanshi.com\/blog\/wp-content\/uploads\/2024\/03\/click-on-new-.png\" alt=\"click on new\" class=\"wp-image-44006\"\/><\/figure>\n<\/div>\n\n\n<p class=\"wp-block-paragraph\">Enter <strong>name and description<\/strong> of your project.<\/p>\n\n\n<div class=\"wp-block-image\">\n<figure class=\"aligncenter size-full\"><img decoding=\"async\" src=\"https:\/\/meetanshi.com\/blog\/wp-content\/uploads\/2024\/03\/enter-name-and-description.png\" alt=\"enter name and description\" class=\"wp-image-44007\"\/><\/figure>\n<\/div>\n\n\n<p class=\"wp-block-paragraph\">Scroll down.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Set it to public or private. Choose to <strong>add README and .gitignore and click create.<\/strong><\/p>\n\n\n<div class=\"wp-block-image\">\n<figure class=\"aligncenter size-full\"><img decoding=\"async\" src=\"https:\/\/meetanshi.com\/blog\/wp-content\/uploads\/2024\/03\/Create-Repository.png\" alt=\"Create Repository\" class=\"wp-image-44009\"\/><\/figure>\n<\/div>\n\n\n<p class=\"wp-block-paragraph\">And it is done.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\" id=\"using-clone-url\">Method 2: How to Import Remote Repository Using Clone URL?<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">On the create a new repo step, click <strong>Import a repo.<\/strong><\/p>\n\n\n<div class=\"wp-block-image\">\n<figure class=\"aligncenter size-full\"><img decoding=\"async\" src=\"https:\/\/meetanshi.com\/blog\/wp-content\/uploads\/2024\/03\/Import-repository.png\" alt=\"Import repository\" class=\"wp-image-44010\"\/><\/figure>\n<\/div>\n\n\n<p class=\"wp-block-paragraph\">Add old repo URL, set name, public or private and <strong>click Begin Import.<\/strong><\/p>\n\n\n<div class=\"wp-block-image\">\n<figure class=\"aligncenter size-full\"><img decoding=\"async\" src=\"https:\/\/meetanshi.com\/blog\/wp-content\/uploads\/2024\/03\/start-the-import.png\" alt=\"start the import\" class=\"wp-image-44011\"\/><\/figure>\n<\/div>\n\n\n<p class=\"wp-block-paragraph\">Now, your repository is created.<\/p>\n\n\n<div class=\"wp-block-image\">\n<figure class=\"aligncenter size-full\"><img decoding=\"async\" src=\"https:\/\/meetanshi.com\/blog\/wp-content\/uploads\/2024\/03\/Importing-completed-.png\" alt=\"Importing completed\" class=\"wp-image-44012\"\/><\/figure>\n<\/div>\n\n\n<h3 class=\"wp-block-heading\" id=\"using-desktop-app\">Method 3: How to Add Remote Repository Using Desktop App?<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">Install the desktop app and log in using your account. In File, click <strong>New repository.<\/strong><\/p>\n\n\n<div class=\"wp-block-image\">\n<figure class=\"aligncenter size-full\"><img decoding=\"async\" src=\"https:\/\/meetanshi.com\/blog\/wp-content\/uploads\/2024\/03\/Desktop-app-create-new-repository.png\" alt=\"Desktop app - create new repository\" class=\"wp-image-44013\"\/><\/figure>\n<\/div>\n\n\n<p class=\"wp-block-paragraph\">Enter the needed details here.<\/p>\n\n\n<div class=\"wp-block-image\">\n<figure class=\"aligncenter size-full\"><img decoding=\"async\" src=\"https:\/\/meetanshi.com\/blog\/wp-content\/uploads\/2024\/03\/enter-the-needed-info.png\" alt=\"enter the needed info\" class=\"wp-image-44014\"\/><\/figure>\n<\/div>\n\n\n<p class=\"wp-block-paragraph\">Click on <strong>Publish repository.<\/strong><\/p>\n\n\n<div class=\"wp-block-image\">\n<figure class=\"aligncenter size-full\"><img decoding=\"async\" src=\"https:\/\/meetanshi.com\/blog\/wp-content\/uploads\/2024\/03\/Publish-.png\" alt=\"Publish\" class=\"wp-image-44015\"\/><\/figure>\n<\/div>\n\n\n<p class=\"wp-block-paragraph\">For the final process, <strong>publish it to github.com<\/strong> and the process is done.<\/p>\n\n\n<div class=\"wp-block-image\">\n<figure class=\"aligncenter size-full\"><img decoding=\"async\" src=\"https:\/\/meetanshi.com\/blog\/wp-content\/uploads\/2024\/03\/Publish-repository-.png\" alt=\"Publish repository\" class=\"wp-image-44016\"\/><\/figure>\n<\/div>\n\n\n<h2 class=\"wp-block-heading\">Creating GitHub Remote Repository &#8211; Best Practices<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">Isn\u2019t it easy?&nbsp; Creating a repository is an easy task; here are some best practices that you can follow to make the most of them.<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li><strong>Create a README file:<\/strong> This makes it easy for everyone in the project to understand the work better. You can also add important information about your project in this file.<\/li>\n\n\n\n<li><strong>Prefer branching over forking:<\/strong> In order to keep your collaboration streamlined, it is recommended to collaborate work from one single repository regularly. The forking process generally best works for accepting inputs from people who are not directly related to the project.<\/li>\n\n\n\n<li><strong>Use Git Large File Storage:<\/strong> GitHub.com limits the sizes of files that are allowed in the repositories, but to go beyond the desired number, you can go for Git Large File Storage.<\/li>\n<\/ul>\n\n\n\n<p class=\"wp-block-paragraph\">We would be happy to help. Thank you for reading. Ciao!<\/p>\n","protected":false},"excerpt":{"rendered":"<p>A simple yet practical guide to help you understand a GitHub Repository and how you can create one. So, without any ado, let us get&#8230;<\/p>\n","protected":false},"author":5,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_acf_changed":false,"footnotes":""},"categories":[34],"tags":[],"class_list":["post-3426","post","type-post","status-publish","format-standard","hentry","category-magento"],"acf":[],"_links":{"self":[{"href":"https:\/\/meetanshi.com\/blog\/wp-json\/wp\/v2\/posts\/3426","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/meetanshi.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/meetanshi.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/meetanshi.com\/blog\/wp-json\/wp\/v2\/users\/5"}],"replies":[{"embeddable":true,"href":"https:\/\/meetanshi.com\/blog\/wp-json\/wp\/v2\/comments?post=3426"}],"version-history":[{"count":2,"href":"https:\/\/meetanshi.com\/blog\/wp-json\/wp\/v2\/posts\/3426\/revisions"}],"predecessor-version":[{"id":13821,"href":"https:\/\/meetanshi.com\/blog\/wp-json\/wp\/v2\/posts\/3426\/revisions\/13821"}],"wp:attachment":[{"href":"https:\/\/meetanshi.com\/blog\/wp-json\/wp\/v2\/media?parent=3426"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/meetanshi.com\/blog\/wp-json\/wp\/v2\/categories?post=3426"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/meetanshi.com\/blog\/wp-json\/wp\/v2\/tags?post=3426"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}