Skip to content
Curiousish
  • How to’s
  • Scripts
  • JavaScript
  • AWS
  • Gallery
  • Misc
  • System Status

How to create a new branch in git?

Posted on 02/02/202129/01/2021by justCurious

It is usually a good idea to pull changes from the upstream and keep the master update before creating a new branch:

Copy Code Copied Use a different Browser

git pull

Create a new branch on your local machine and switch to the branch:

Copy Code Copied Use a different Browser

git checkout -b new_branch_name

Code Coding GIF by EscuelaDevRock

 

Categories How to'sTags Git

Post navigation

Previous Post How to remove a local branch from your machine?
Next PostHow to Remove Untracked Files in Git?

Tags

  • AHK (1)
  • AWS (32)
  • azure (1)
  • bash (2)
  • C# (1)
  • chrome (1)
  • cloud (6)
  • CMD (1)
  • concepts (1)
  • CSS (1)
  • developer (1)
  • docker (3)
  • EC2 (1)
  • ffmpeg (2)
  • GCP (1)
  • Git (7)
  • groovy (9)
  • Guides (1)
  • HTML (3)
  • JavaScript (5)
  • JavaScript Project (1)
  • kubernetes (1)
  • Linux (7)
  • mac (5)
  • Media (1)
  • Powershell (8)
  • SysOps (2)
  • utilities (2)
  • Visual Studio (1)
  • Windows (1)
  • XML (1)
  • Youtube (1)

Uptime Check

  • How to’s
  • Scripts
  • JavaScript
  • AWS
  • Gallery
  • Misc
  • System Status

Quote of the month

Pareto Principle – You’ll learn the 20% of the things that you’ll need to do 80% of the time, when writing a program in C#.

Uptime Check

Copyright © 2021 Curiousish