Git Create Branches

@Inderpreet @Ayman or anyone in the team comment to check where I went wrong on this:

Task: Git Create Branches

Assignment went like this …On Storage server in Stratos DC create a new branch xfusioncorp_beta
from master branch in /usr/src/kodekloudrepos/beta git repo.
Failed with message that kodekloud_beta was not created:

image

From the assignment, I was required to create xfusioncorp_beta and not kodekloud_beta. Kodekloud_beta is the master and is already existing. Please assist to validate this task correctly. See how i did this:

[[email protected] ~]# cd /usr/src/kodekloudrepos/beta/
[[email protected] beta]# ls -al
total 20
drwxr-xr-x 3 root root 4096 Jun 15 21:13 .
drwxr-xr-x 3 root root 4096 Jun 15 21:13 …
-rw-r–r-- 1 root root 34 Jun 15 21:13 data.txt
drwxr-xr-x 8 root root 4096 Jun 15 21:13 .git
-rw-r–r-- 1 root root 34 Jun 15 21:13 info.txt
[[email protected] beta]# git status

On branch kodekloud_beta
nothing to commit, working directory clean
[[email protected] beta]#git checkout -b xfusioncorp_beta kodekloud_beta
Switched to a new branch ‘xfusioncorp_beta’
[[email protected] beta]# git status

On branch xfusioncorp_beta
nothing to commit, working directory clean[[email protected] beta]#

@Duncan the task failed for you because you didn’t create the new branch from master, as in the question it is asked to create this new branch from master branch.

Further there is a mistake in error message itself which we will fix, thanks for reporting.

@Inderpreet Noted. Thanks for your feedback.