π‘ What is GitHub?
GitHub is a free website where you can:
- Store your projects safely online
- Share your work with others
- Keep a history of your changes (like a time machine for your code or files)
Think of GitHub as your online folder for your important projects.
π» What is GitHub Desktop?
GitHub Desktop is a software you install on your computer that helps you:
- Upload files or projects to GitHub easily
- Track your changes
- Sync your work with GitHub.com without any code
β Best for beginners because it uses a visual interface (buttons and menus), not commands.
π§ Step-by-Step: Uploading Your Project to GitHub
β Step 1: Download and Install GitHub Desktop
- Go to: https://desktop.github.com
- Download for your system (Windows or Mac)
- Install it like any normal software
β Step 2: Sign In to GitHub
- Open GitHub Desktop
- Click “Sign in to GitHub.com”
- Enter your GitHub account (create one at https://github.com if you donβt have it)
β Step 3: Create a New Repository
- Click on File β New Repository…
- Fill in:
- Name: Your project name (e.g.,
my-first-project) - Local Path: Choose the folder where your project is stored on your computer
- Leave other settings as default
- Name: Your project name (e.g.,
- Click Create Repository
π This makes GitHub Desktop ready to track your folder.
β Step 4: Add Files to Your Project Folder
- Go to the folder you selected earlier
- Copy or create files (e.g.,
.txt,.py,.html, etc.) - GitHub Desktop will automatically detect those changes
β Step 5: Commit Your Changes
- Go back to GitHub Desktop
- Under the Changes tab, you will see a list of files
- In the bottom-left corner, write a short message like:
Initial commit - added project files - Click Commit to main
π This step saves the version of your work.
β Step 6: Publish Your Repository to GitHub
- Click the “Publish repository” button on the top right
- Keep the repo Public or make it Private
- Click Publish Repository
π Now your project is live on GitHub.com!
β Step 7: View Your Project Online
- Visit:
https://github.com/your-username/your-project-name - Youβll see your uploaded files and folders
π How to Update Files Later?
If you:
- Add new files
- Make changes in your project folder
π GitHub Desktop will detect the changes
π Just commit them with a message and click Push origin to update the online version.
β Common Mistakes and Fixes
| Problem | Solution |
|---|---|
| Subfolders not uploaded | Make sure theyβre not empty |
| Project not visible on GitHub | Donβt forget to Push after commit |
| Can’t find repo online | Double-check the repo name and username |
π Final Notes
- You donβt need coding to use GitHub Desktop.
- A README file helps describe your project.
- Make your GitHub profile look clean and professional by uploading real practice projects.