Day 22 - 100 days of devops

I am getting error on a simple git clone task:

  • ‘/opt/games.git’ git repository is not cloned under ‘/usr/src/kodekloudrepos/’ on Storage Server

The problem exactly asks to clone /opt/games.git to /usr/src/kodekloudrepos which i did correctly, still getting this error.

Can someone look into this?

All steps i did are mentioned in the snippet. kindly have a look and let me know what’s wrong.

Hi @vsinaws

You need to cd into /usr/src/kodekloudrepos and run git clone /opt/games.git

Just curious to know. The way i was doing task, was it wrong?

You are cloning /opt/games.git directly within /usr/src/kodekloudrepos. Hence, you see a .git directory and all other files be under the ./kodekloudrepos.

Whereas, you need to clone the games repo. With the other command, your .git dir (A git repo) and files should be under /usr/src/kodekloudrepos/games

2 Likes

@Santosh_KodeKloud thanks for the explaination.

check this repo : i found the solution here : 100-Days-Of-DevOps-KodeKloud-Challenges-Solutions

those are the command i used on this task but yet nothing

you clone one time. there will be a directory name same like .git directory. navigate inside and clone it again. that way worked for me