Hi
I have done the task where it asks to clone git repo from a source to another and done correctly, should be a pretty simple and easy task to do but for some reason the task keep failing me after maybe 6 or 7 tries with different methods and made sure also that the repo is in place.
is there anything missing related to that task that I am not seeing?
Which task are you doing? Different tasks have different things you need to worry about. If it’s a “day of devops”, what day would a good thing to know.
Sure
It’s the task where you need to clone a git repo for example from /opt/apps.git to /usr/src/kodekloudrepos
the thing is it should only be two commands to just cd to the destination directory and use “git clone /opt/apps.git”
or I used “git clone /opt/apps.git /usr/src/kodekloudrepos”
and both of them tried using normal user privileges and sudo as well
the thing also is when I do the cloning and check via “ls -la” it displays the cloned repo but missing .git where I checked online tutorials and used the exact steps it clones the repo with .get extension but it doesn’t do it for me
That’s not the command you want. git clone /opt/apps.git /usr/src/kodekloudrepos turns kodekloudrepos into a repo. You want the repo to be inside of that directory, not the repo itself. So the correct command is:
cd /usr/src/kodekloudrepos
git clone /opt/apps.git