How to Upload Your Local Project to GitHub Properly
📂 How I Learned the Right Way to Upload a Project to GitHub (From My College Mistake)
🏫 The College Phase: Uploading Projects to GitHub… the Wrong Way
When I was in college, like many students, I worked on small development projects — web apps, Java-based tools, and mini full-stack apps.
Back then, seniors and recruiters would often ask:
“Do you have a GitHub link for your projects?”
So I did what most beginners do:
-
I created a new repository on GitHub.
-
Then, I clicked Upload Files.
-
I dragged and dropped my entire project folder.
-
And hit “Commit”.
Done, right?
Well... not exactly.
❌ Why That Was the Wrong Way
At first glance, it looked fine — my code was there on GitHub. But:
-
There was no commit history
-
Git wasn’t tracking actual changes over time
-
No
.gitignorefile — so unnecessary files were also uploaded -
If I cloned it somewhere else, setup was messy
Worse, I couldn’t show any contribution activity — my GitHub profile looked inactive.
✅ What I Learned: The Proper Way to Push Projects to GitHub
Later, during my internship and with self-learning, I finally understood how real developers use Git and GitHub.
Here’s the correct step-by-step process 👇
🔧 Step-by-Step: How to Upload Your Local Project to GitHub Properly
✅ 1. Create a GitHub Repo
Go to github.com:
-
Click New Repository
-
Give it a name (e.g.,
portfolio-website) -
Keep it empty (no README, .gitignore, or license)
✅ 2. Initialize Git in Your Project Folder
✅ 3. Connect Local Folder to GitHub
✅ 4. Add & Commit Files
✅ 5. Push to GitHub
✅ Now your project is properly versioned and hosted!
📘 Bonus: Add .gitignore File
Always create a .gitignore file to exclude files like:
-
node_modules/ -
.env -
.vscode/
Use gitignore.io to generate one based on your tech stack.
🙋♂️ What I Learned
-
GitHub isn’t just a file uploader — it’s a version control platform.
-
Uploading with drag & drop won’t show commits, history, or activity.
-
Recruiters want to see your coding process, not just the final code.
Iframe sync
Iframe sync
Iframe sync
https://unhealthyirreparable.com/cit2c8ca?key=7566cfdb82de49ba4912160b26b7621f
📌 Final Tip
If you're new, it's okay to start wrong — but it’s powerful to learn and fix.
Now, every time I build a project — whether for college, internship, or freelance — I track it with Git locally and then push to GitHub the right way.
Example Push React App on Github

Comments
Post a Comment