Explore Branches in Git Source Control

Explore Branches in Git Source Control

Explore branches in Git Source Control. We can consider a Git branch similar to a tree branch. Git source control resolves these issues using different branches. The branch in which we want to merge your code in the master branch. Currently, we have a master branch, and the arrow shows the last commit in this branch.

In this 5th article of the  Source Control series, we will explore the concept of branches in a Git source control and GitHub repositories.


We covered the followings topics for source control in the previous articles ( ToC at the bottom):

  • What are Git and a GitHub repository?
  • We covered Git integrations in the Azure Data Studio and Visual Studio Code
  • We initialized a Git repository and synchronized with the remote repository GitHub while making bi-directional changes
  • Understand the Git timeline and its components – Staging area, Working tree, and a repository
  • Useful Git commands
  • Clone repository from GitHub

Branches in Git Source Control

As you know, Git source control takes a project snapshot once we commit the project. You can view the Git timeline to see the different stages and rollbacks to the earlier version in case of any requirement. By default, Git uses the master branch and stores all changes in that branch. We can verify the existing branches using the git branch -a command, as shown below.

Here, we see a Git branch (master) and its corresponding remote repository in GitHub (remotes/RajendraGit/master)

For the master branch, it uses an Asterix(*) to show that we are currently in this specified branch.

Git Source control branch

You might think:

  • Why we require different branches in Git?
  • What is the benefit of using different branches in Git?

development source control git

Bootstrap 5 Complete Course with Examples

Bootstrap 5 Tutorial - Bootstrap 5 Crash Course for Beginners

Nest.JS Tutorial for Beginners

Hello Vue 3: A First Look at Vue 3 and the Composition API

Building a simple Applications with Vue 3

Deno Crash Course: Explore Deno and Create a full REST API with Deno

How to Build a Real-time Chat App with Deno and WebSockets

Convert HTML to Markdown Online

HTML entity encoder decoder Online

How long does it take to develop/build an app?

This article covers A-Z about the mobile and web app development process and answers your question on how long does it take to develop/build an app.

Developer Career Path: To Become a Team Lead or Stay a Developer?

For a developer, becoming a team leader can be a trap or open up opportunities for creating software. Two years ago, when I was a developer, ... by Oleg Sklyarov, Fullstack Developer at Skyeng company

Best Practices for Using Git

Git has become ubiquitous as the preferred version control system (VCS) used by developers. Using Git adds immense value especially for engineering teams where several developers work together since it becomes critical to have a system of integrating everyone's code reliably.

Source Control using Git in Azure Data Studio (ADS)

In this article, we will take an overview of Source Control using Git in Azure Data Studio(ADS).You might have heard about the opensource and distributed version control system – GitHub. It is a useful tool for developers to store all modifications in a single place. They can download the current version, make changes, upload the new version for everyone’s visibility. Azure Data Studio integrates Source control functionality for this purpose. In this article, we will explore the source control Git repository integration with ADS.

Offshore Software Development - Best Practices

To make the most out of the benefits of offshore software development, you should understand the crucial factors that affect offshore development.