How to Create a Repository on GitHub Updated on June 12, 2023 by Christopher Maiorana 2 Minutes, 3 Seconds to Read Now that you have created an account with GitHub, you are ready to create a new repository. This would be a good time to check out our Git guide on using remote repositories. Basically, remote repositories are important for the following reasons: Provides a “hub” for your code Supports collaboration Decentralizes your code to protect against loss How to Create a Repository at GitHub While you can create your own repository on your private server, the steps below demonstrate how you can create a repository at GitHub. Log into GitHub Under Your repositories click New repository Fill in the Repository name Click Create repository Explanation of Options While you can create a repository with only a name, there are some other options you can select in advance that may help optimize your repository. Description The optional description of your repository should be short and sweet. You don’t need too much information here, but it might help to distinguish this repository in a large list. Public or Private If you have a free, personal account with GitHub then Public is your only choice. Initialize this repository with a README The README file is a detailed description of the project which can include special instructions, contribution policy, FAQ, and more. If your program requires more detailed documentation, you should consider using the Wiki feature that comes with your repository. Add .gitignore Various programming languages and operating systems create extraneous files you don’t need to track. GitHub lets you select a programming language and automatically creates a .gitignore files with rules that will ignore those extraneous files. This will keep unwanted files out of your project. Add a license This option lets you quickly and easily add a popular softare license to your repository. This will help other people know how they are permitted to use your code. Where to go from here… Well done on your completion of this tutorial. In the above article we discussed how you can create a remote repository at GitHub as opposed to hosting one of your own. While it’s easy to host your own repository, GitHub has done a lot of the work for you. You may be wondering what the next step might be. For a refresher on Git, check out our Introduction to Git. Learn how to host your own repository. Use Git to host frequently updated files. If you have any questions about this article or using Git in general, please leave a comment below. Share this Article CM Christopher Maiorana Content Writer II Christopher Maiorana joined the InMotion community team in 2015 and regularly dispenses tips and tricks in the Support Center, Community Q&A, and the InMotion Hosting Blog. More Articles by Christopher Related Articles How to Host a Static Site with GitHub Pages Publish Your Lovable Created React WebApp to InMotion Hosting Shared Hosting via GitHub How to Publish Your Lovable Created React WebApp to UltraStack ONE for React Git Checkout Command – How To Switch To Branches and Commits How to Create Your Own Git Server Using Git to Publish Files How to Create a New Account with GitHub How to Commit Changes in Git How to Sign Tags and Commits with Git Git Fundamentals Complete Beginner Guide