Got a project sitting on your computer that isn't on GitHub yet? In this video, I'll show you exactly how to take an existing local folder and push it up to a brand-new GitHub repository — entirely from Git Bash, step by step.
Whether you're on Windows using Git Bash for the first time, or you just want a clean refresher on the init - commit - remote - push workflow, this one's for you.
⏱️ TIMESTAMPS
00:00 – Intro
00:40 – Before You Start (checking Git is installed)
01:30 – Step 1: Turn Your Folder Into a Git Repository (git init)
03:00 – Step 2: Stage & Commit Your Files
05:10 – Step 3: Create a New Repository on GitHub
07:00 – Step 4: Connect Your Local Repo to GitHub (git remote add origin)
08:30 – Step 5: Push Your Code (git push -u origin main)
📌 WHAT YOU'LL LEARN
How to initialize a local folder as a Git repository
How to stage and commit your existing files for the first time
How to create a matching empty repository on GitHub.com
How to link your local repo to GitHub with git remote add origin
How to push your code up for the first time with git push -u origin main
What to do if you hit the "remote origin already exists" or "failed to push" errors
🔧 QUICK COMMAND REFERENCE
git init - turn a folder into a Git repo
git add . - stage all files
git commit -m "Initial commit" - commit staged files
git remote add origin (repo-url) - link to your GitHub repo
git branch -M main - rename your branch to main
git push -u origin main - push and set the upstream branch
🔗 USEFUL LINKS
GitHub: https://github.com
Git Bash download: https://git-scm.com
👋 Follow along or say hi: @calebdduff
If this helped you out, drop a like and subscribe — new tech, travel, growth, and motivation content dropping regularly. Let me know in the comments if you want a follow-up video on branches, pull requests, or resolving push conflicts.
#github #gitbash #git #codingtutorial #webdevelopment #learntocode #developertools #techtutorial #programmingforbeginners #TheTechHighway