Issue in 100 Days of devops - Day 25: Git Merge Branches

I am getting this error continuously, so I am attaching the screenshot for your reference.

- new git branch ‘nautilus’ is not created under ‘/usr/src/kodekloudrepos/news/’ repo on Storage server




I don’t see any problem with your procedure, but problems with these labs can be subtle. Please look at this solution, to see how your effort differs.

1 Like

Thanks, Rob, for your input. However, the solution you mentioned and my workaround are the same. I’m wondering what the exact issue was here ?

1 Like

What was the error message you received when you invoked the grader? Might tell us something.

1 Like

Error - - new git branch ‘nautilus’ is not created under ‘/usr/src/kodekloudrepos/news/’ repo on Storage server

1 Like

Hi @Akilamadushan

I just checked, and it’s working properly on my end, you can see the screenshot below. Could you please try again and share your detailed steps?

1 Like

Details is below

[natasha@ststor01 ~]$ git checkout master
fatal: not a git repository (or any of the parent directories): .git
[natasha@ststor01 ~]$ cd /usr/src/kodekloudrepos/media
[natasha@ststor01 media]$
[natasha@ststor01 media]$
[natasha@ststor01 media]$ git checkout master
Already on ‘master’
Your branch is up to date with ‘origin/master’.
[natasha@ststor01 media]$
[natasha@ststor01 media]$ git checkout -b nautilus
Switched to a new branch ‘nautilus’
[natasha@ststor01 media]$ cp /tmp/index.html .
[natasha@ststor01 media]$ git add index.html
[natasha@ststor01 media]$ git commit -m “add file”
[nautilus 055d2ca] add file
1 file changed, 1 insertion(+)
create mode 100644 index.html
[natasha@ststor01 media]$ git checkout master
Switched to branch ‘master’
Your branch is up to date with ‘origin/master’.
[natasha@ststor01 media]$ git merge nautilus
Updating 837f6f4…055d2ca
Fast-forward
index.html | 1 +
1 file changed, 1 insertion(+)
create mode 100644 index.html
[natasha@ststor01 media]$ git push origin master
Enumerating objects: 4, done.
Counting objects: 100% (4/4), done.
Delta compression using up to 16 threads
Compressing objects: 100% (2/2), done.
Writing objects: 100% (3/3), 330 bytes | 330.00 KiB/s, done.
Total 3 (delta 0), reused 0 (delta 0), pack-reused 0 (from 0)
To /opt/media.git
837f6f4…055d2ca master → master
[natasha@ststor01 media]$ git push origin nautilus
Total 0 (delta 0), reused 0 (delta 0), pack-reused 0 (from 0)
To /opt/media.git

  • [new branch] nautilus → nautilus
    [natasha@ststor01 media]$

Hi @raymond.baoly.

I can’t add a proper comment because of the limit below
An error occurred: Sorry, new users can only put 2 links in a post.