🏠 Homepage
⬅️ Previous: 👤 Setting up GitHub Account
Follow these steps to create your first repository on GitHub. This guide explains each field with examples and tips.
my-first-repo
✅ Tips:
Example:
A basic repository to practice Git and GitHub workflow.
✅ Helps others understand what your project is about
✅ Appears on your profile and search results
Option | Description | When to Choose |
---|---|---|
Public | Anyone can view your repository | For open-source or practice |
Private | Only you (and collaborators) can view | For school/private projects |
For learning: ✅ Public is usually the best choice.
README.md
file to your repository.Example README Content:
# My First Repository
This is a practice repo for learning Git and GitHub.
✅ Check it if you’re starting fresh ⚠️ Uncheck if you will push an existing project from your computer
.gitignore
file tells Git which files or folders to ignore so they are not tracked or committed to your repository.Example:
If you’re creating a Python project, choose the Python template from the dropdown.
It will ignore files like:
pycache/
*.py[cod]
.env
Other available templates:
✅ Choosing the right .gitignore
keeps your repo clean and professional.
Adding a license lets others know what they can or can’t do with your code or content.
License | Description | Best For |
---|---|---|
MIT | Very permissive. Allows reuse with attribution. | ✅ Beginners, tutorials, open-source |
GPL | Requires derivative works to also be open source. | Strict sharing & free software fans |
Apache 2.0 | Like MIT but includes patent protection. | Enterprises and large projects |
Creative Commons (CC-BY 4.0) | For non-code content like documentation, tutorials, blog posts | ✅ Writers, educators, designers |
None | No license = all rights reserved. | Private or restricted projects |
⚠️ Note:
Use Creative Commons licenses only for content, not code.
For code, prefer MIT, GPL, or Apache.
For writing, art, or course material, CC-BY 4.0 is a great choice — it allows reuse with credit.
Example selection for students:
After completing the form and selecting the appropriate settings, click the green “Create repository” button.
You’ll be redirected to:
.gitignore
, LICENSE if added)➡️Up Next: 🔄 Basic Git Workflow