100-Days-Of-DevOps-Challenge-KodeKloud

Git Branch Create

Nautilus developers are actively working on one of the project repositories, /usr/src/kodekloudrepos/media. Recently, they decided to implement some new features in the application, and they want to maintain those new changes in a separate branch. Below are the requirements that have been shared with the DevOps team:

Steps

  1. Login into storage server and run the following commands:

     sudo su
     cd /usr/src/kodekloudrepos/media
    
  2. Let’s check current branch

     git branch
    

    if current branch is n’t master branch, then switch to master branch:

     git switch master
    
  3. Create a new branch

     git checkout -b xfusioncorp_media
    

Good to Know?

Git Branching Fundamentals

Branch Operations

Branching Strategies

Best Practices