Remove Existing GIT in Local Device
rmdir /s /q G:\.git
Initialize git
git init
Connect to your GitHub repository
git remote add origin https://github.com/username/repositor...
Add the folder
git add folder_name
Commit
git commit -m "Added project folder"
Push to GitHub
git push
How to Upload a File or Folder to GitHub Using Git Commands | Beginner Tutorial
In this video, I explain step by step how students and beginners can upload files or entire folders to GitHub using Git commands. This tutorial is designed to help you understand the basic Git workflow in a simple and practical way.
What you’ll learn in this video:
✅ What is Git and why it is used
✅ Initializing a repository using git init
✅ Adding files and folders using git add
✅ Saving changes with git commit
✅ Connecting local project to GitHub using git remote
✅ Uploading files to GitHub using git push
✅ Common mistakes beginners face and how to fix them
This video is perfect for students, beginners, and freshers who want to start using GitHub for projects, assignments, and version control.
Like, Share, and Subscribe for more Git, GitHub, and development tutorials. Let’s learn, commit, and push together!