Skip to content

Make Selenium Easy

And Keep It That Way

  • Home
  • Share
  • About Us
  • 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

Frequently Asked Java Program 22: Java Program to Trim Whitespace From String Without Using Trim Method | Make Selenium Easy Uncategorized
API Testing Tutorial Part 11 – Difference Between SOAP and Rest Web Services or API | Make Selenium Easy Uncategorized
Java Program To Find Closest Value Of A Given Number In Sorted Array Uncategorized
xpath in chrome – Make Selenium Easy Uncategorized
image – Make Selenium Easy Uncategorized
REST Assured Tutorial 53 – How to create ResponseSpecification using ResponseSpecBuilder Uncategorized

Recent Posts

  • How to Scroll Web Pages in Selenium Using JavaScript Executor
  • How to Take Screenshots in Selenium WebDriver
  • Actions Class in Selenium: Mouse Hover, Drag and Drop, Right Click
  • How to Handle iFrames and Nested Frames in Selenium
  • Working with Multiple Windows and Tabs in Selenium WebDriver

Recent Comments

No comments to show.

Archives

  • October 2026
  • September 2026
  • August 2026
  • July 2026
  • June 2026
  • May 2026
  • 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

  • Advanced Interactions
  • Getting Started
  • Locators and Elements
  • Uncategorized
  • Waits and Synchronization

Copyright © 2026 Make Selenium Easy.

Powered by PressBook Masonry Dark