Перейти к содержимому

GitHub Tutorial 3 🔥 Push Local & Django Projects to GitHub | Branch Rename

CS_Wallah

0:00 / 0:00

GitHub Tutorial 3 🔥 Push Local & Django Projects to GitHub | Branch Rename

129 просмотров · 12 дн. назад
CS_Wallah
23 подписчика
129 просмотров · 12 дн. назад
🚀 GitHub Tutorial 3 | Push Local & Django Projects to GitHub Want to upload your local project to GitHub without creating a README file first? In this practical tutorial, we'll create an empty GitHub repository, push a simple HTML project from our Windows laptop, and then follow a similar workflow for a real Django project. We'll also learn how to initialize Git, connect a remote repository, check the current branch, and rename a branch. 💻 WHAT YOU'LL LEARN ✅ Create a GitHub repository without a README.md file ✅ Create a local folder and add an `index.html` file ✅ Initialize Git using `git init` ✅ Add a GitHub remote using `git remote add origin` ✅ Stage and commit project files ✅ Push a local project to GitHub ✅ Push a Django project to GitHub ✅ Check the current branch using `git branch` ✅ Rename a branch using `git branch -m` ⏱️ VIDEO CHAPTERS 00:00 – Introduction 00:45 – Create a GitHub Repository Without README.md 02:00 – Create a Local Folder and index.html 04:00 – Initialize Git Using `git init` 05:30 – Add and Commit Project Files 06:30 – Add the Remote Origin 08:00 – Push the Local Project to GitHub 10:00 – Push a Django Project to GitHub 12:30 – Check the Current Branch Name 13:30 – Rename a Branch 15:00 – Summary and Next Steps 🧠 IMPORTANT GIT COMMANDS `git init` — Initialize a Git repository. `git status` — Check the working tree. `git add .` — Stage changes in the current directory. `git commit -m "Initial commit"` — Create a commit. `git remote add origin repository-url` — Connect a remote repository. `git push -u origin main` — Push the local `main` branch and set its upstream. `git branch` — List local branches. `git branch -m new-branch-name` — Rename the current branch. ⚠️ DJANGO PROJECT SECURITY TIP Before pushing a Django project, check your `.gitignore` file. Never commit secret keys, `.env` files, database credentials, passwords, or other sensitive information. A typical Django project should exclude virtual environments, local databases where appropriate, and generated files. 🚀 Subscribe to CS_Wallah for practical tutorials on Git, GitHub, Python, Django, AI, coding, and Computer Science. 👍 Like, share, and comment: What should we build next? LEARN. BUILD. THINK. ❤️ #GitHub #Git #Django #GitTutorial #VersionControl #CodingForBeginners #CSWallah