Git level 1 Task 2

What’s Wrong here?

You are incorrectly specifying the destination directory of the cloned repo. It is better to do it this way to ensure the name remains preserved:

thor@jump_host ~$ ssh natasha@ststor01
The authenticity of host 'ststor01 (172.16.238.15)' can't be established.
ECDSA key fingerprint is SHA256:PINHtiPd7W7/JKqMtAPd500iowfPPghoTqE/LSAXcCk.
Are you sure you want to continue connecting (yes/no/[fingerprint])? yes
Warning: Permanently added 'ststor01,172.16.238.15' (ECDSA) to the list of known hosts.
natasha@ststor01's password: 
[natasha@ststor01 ~]$ cd /usr/src/kodekloudrepos/
[natasha@ststor01 kodekloudrepos]$ sudo git clone /opt/cluster.git

We trust you have received the usual lecture from the local System
Administrator. It usually boils down to these three things:

    #1) Respect the privacy of others.
    #2) Think before you type.
    #3) With great power comes great responsibility.

[sudo] password for natasha: 
Cloning into 'cluster'...
warning: You appear to have cloned an empty repository.
done.
1 Like