In this video, I’ll show you how to push a Jupyter Notebook project to GitHub step by step using Git commands. This tutorial is perfect for beginners who want to upload their Python or data analytics projects to GitHub easily.
📌 Terminal Commands Used to Push a Project from Jupyter Notebook Directly to GitHub
Step 1: Check current working directory
pwd
Step 2: Initialize Git
git init
Step 3: Add all project files
git add .
Step 4: Commit files
git commit -m "Initial commit"
Step 5: Connect local project to GitHub repository
git remote add origin https://github.com/your-username/your-repo...
Step 6: Rename branch to main
git branch -M main
Step 7: Push project to GitHub
git push -u origin main