Skip to content

Make Selenium Easy

And Keep It That Way

  • Home
  • Share
  • Toggle search form

Git Tutorial 13 – What Is A Branch In Git?

Posted on 02/19/2025 By admin

As a part of GIT Tutorials End To End, we will learn about branching concepts of Git in this post.

I will expect that you are aware of the basic concepts and commands of GIT. But if you are a beginner in GIT then I strongly recommend you to refer GIT Basic Commands and Concepts section on my blog first.

Did you know that I have started a YouTube channel as well and I need your support to make it successful. Please do watch content then comment, like, share, and obviously subscribe.

Let’s visualize some scenarios which might help you to understand the necessity of branches.

You are a hardworking developer and asked to develop two features in a Sprint. You started writing code for the first feature by pulling the latest code from the master branch in your local repo. During development, you found a requirement gap and can’t continue development. Meanwhile, you would like to start coding for the second feature but you have incomplete/unstable code for the first feature in your local repo. You have multiple options here:-

  • Delete all code of first Feature.
  • Make a copy of all changes in different folder and then start working on second feature.
  • You can pull change from master again in a new local repo.

There might be many more and seriously I have used the above options when I was a beginner in git.

The best option for the above scenario will be Branching. You can save the incomplete code of the first feature in a branch and can continue developing the second feature in another branch. You can work on both features parallelly and independently. You can perform all git operations in branches. A branch can be created in multiple scenarios like a bug fix, feature development, experimental code or customized code for different environments etc.

  • Parallel development of features independently. Codes can be reviewd and modified easily.
  • Feature developed in a branch can be merged easily to main branch.
  • Useful in quick bg fixes, experimeting codes etc.
  • Code from any branch can be pulled and pushed.

In fact in real-time “Branch” system is mostly used. For example – In a sprint-based development methodology, features are developed in individual branches by each developer and merged to the main branch after proper review. We will see more about branches in upcoming posts.

If you have any doubt, feel free to comment below.
If you like my posts, please like, comment, share and subscribe to my YouTube channel.
#ThanksForReading
#HappyLearning

Uncategorized

Post navigation

Previous Post: How to Fluent With FluentWait in Selenium WebDriver? – Part 1
Next Post: Where Does PageFactory Suck – Selenium WebDriver – Java

Related Posts

Method 2: getCssValue() : What, When and How to use? Uncategorized
JSONPath and Query JSON using JSONPath Uncategorized
Postman Tutorial Part 50 – How to Retrieve Request Body in Postman Uncategorized
position in xpath Uncategorized
Selenium Topics – Page 5 – Make Selenium Easy Uncategorized
Create A List Of Map From Excel Data In Java – Selenium – API Automation Uncategorized

Recent Posts

  • Getting Started with Selenium 4: What Is New and How to Upgrade from Selenium 3
  • Manual Testing
  • Baby Steps To Become Efficient Selenium-Java Automation Tester
  • Features of Selenium 4.0.0 Release – Java Binding
  • Part 1: Handling Drop-down Created Using SELECT Tag In Selenium

Recent Comments

No comments to show.

Archives

  • April 2026
  • April 2025
  • March 2025
  • February 2025
  • January 2025
  • December 2024
  • November 2024
  • October 2024
  • September 2024
  • August 2024
  • April 2024
  • March 2024
  • February 2024
  • December 2023
  • October 2023
  • August 2023
  • November 2022
  • September 2022
  • August 2022
  • July 2022
  • May 2022
  • March 2022
  • October 2021
  • April 2021
  • March 2021
  • January 2021
  • December 2020
  • October 2020
  • September 2020
  • August 2020
  • June 2020
  • May 2020
  • April 2020
  • March 2020
  • February 2020
  • January 2020
  • December 2019
  • November 2019
  • October 2019
  • September 2019
  • August 2019
  • May 2019
  • December 2018
  • November 2018
  • October 2018
  • September 2018
  • August 2018
  • July 2018
  • January 2018

Categories

  • Getting Started
  • Uncategorized

Copyright © 2026 Make Selenium Easy.

Powered by PressBook Masonry Dark