Facing an interesting issue while working on a Git task in KodeKloud labs

The requirement was simple — create a new branch nautilus , add a file, commit it, merge it back to master, and push everything to the remote repo.

I went through the full workflow step by step, and everything looked correct from my end:

  • Branch is created locally
  • Changes are committed
  • Merge into master is successful
  • Both branches are pushed to origin

Even verified using:

  • git branch
  • git branch -r
  • git log --graph
  • git ls-remote

All outputs clearly show that the nautilus branch exists and is properly merged.

But still, the lab validator keeps failing with:
"new git branch ‘nautilus’ is not created under the repo


"

Spent some time rechecking and redoing the steps, but results are consistent — everything looks technically correct.

Feels like this might be a validation issue rather than a Git workflow mistake.

On the storage server, cd into the repo dir.

git checkout -b <branch>
cp /tmp/index.html ./
git add .
git commit -m "adding index.html"
git push origin <branch>

#Now merge the branch to master and push
git checkout master
git merge <branch>
git push origin master

This workflow worked for me. Could you try this again?