24/100 Git Create Branches

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:

On Storage server in Stratos DC create a new branch xfusioncorp_media from master branch in /usr/src/kodekloudrepos/media git repo.

ssh natasha@ststor01
sudo su -
cd /usr/src/kodekloudrepos/media
git branch -v <- Lists all local branchs or git branch --list
* kodekloud_media 8f51aa9 add data file  <- * means current branch in use
  master          0da1714 initial commit

# Change to the master branch
git checkout master
Switched to branch 'master'
Your branch is up to date with 'origin/master'.

# Create new branch xfusioncorp_media from the master branch
git checkout -b xfusioncorp_media
Switched to a new branch 'xfusioncorp_media'

# Check new branch has been created
git branch -v
  kodekloud_media   8f51aa9 add data file
  master            0da1714 initial commit
* xfusioncorp_media 0da1714 initial commit