9 Create and Push changes to Branch
Git Basics: Creating Branches & Committing Changes to a Feature Branch In this video, we go beyond commits and pushes to explore a common Git workflow used by most developers — creating and working on separate branches instead of directly editing the main (master) branch. You’ll learn how to create a new branch for a specific feature (in this case, a divide function), switch to that branch, make changes, and commit them — all without affecting your main project or master branch. This is a must‑know skill for collaborating on larger projects. 📌 What You’ll Learn in This Video 0:00 – Welcome & Introduction 0:05 – Why Developers Use Branches Instead of Master 0:16 – Planning a New Feature (divide function) 0:24 – Creating a New Branch with `git branch branch_name` 0:49 – Viewing All Branches with `git branch` 1:13 – Switching Branches with `git checkout branch_name` 1:34 – Editing the divide() Function in Code 1:49 – Saving Changes & Checking Modified Files with `git status` 2:02 – Adding Changes to Staging with `git add -A` 2:20 – Committing Changes to the New Branch with `git commit -m` 2:36 – Understanding That Edits Stay Isolated in the Feature Branch 2:54 – Review: Create Branch → Checkout → Commit to Feature Branch Related Links: Course: https://www.becloudready.com/devops-launchpad Land a DevOps Job in 60 Days: https://www.becloudready.com/post/devops-launchpad-land-a-devops-job-in-60-days Subscribe for more DevOps and software development tutorials: https://www.youtube.com/@UCmtepvrw2GfjB6JbyxpIp0A Follow For More on Social Media: Instagram: https://www.instagram.com/becloudready Facebook: https://www.facebook.com/becloudready/ X: https://x.com/becloudready LinkedIn: https://www.linkedin.com/company/becloudready/
Download
0 formatsNo download links available.