Question : DevOps team created a new Git repository last week; however, as of now no team is using it. The Nautilus application development team recently asked for a copy of that repo on Storage server in Stratos DC. Please clone the repo as per details shared below:
The repo that needs to be cloned is /opt/ecommerce.git
Clone this git repository under /usr/src/kodekloudrepos directory. Please do not try to make any changes in repo.
Please Note :- Perform the below commands based on your question server, user name & other details that might differ. So please read the task carefully before executing it. All the Best 👍
1. At first login on to the storage server & Switch to the root user
|
thor@jump_host
~$ ssh natasha@ststor01 The authenticity
of host 'ststor01 (172.16.238.15)' can't be established. ECDSA key
fingerprint is SHA256:C2nBjLQ9cCcEdGxi9ZCMDGxxhXhVsIKmSuMkYcEA5OM. ECDSA key
fingerprint is MD5:81:b8:36:05:28:fd:ba:a0:1b:6b:bb:e1:88:56:63:9b. Are you sure you
want to continue connecting (yes/no)? yes Warning:
Permanently added 'ststor01,172.16.238.15' (ECDSA) to the list of known
hosts. natasha@ststor01's
password: [natasha@ststor01
~]$ sudo su - 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: [root@ststor01
~]# |
2. clone git repository under directory mentioned in your task
|
[root@ststor01
~]# cd /usr/src/kodekloudrepos [root@ststor01
kodekloudrepos]# ll total 0 [root@ststor01
kodekloudrepos]# |
|
[root@ststor01
kodekloudrepos]# git clone /opt/ecommerce.git Cloning into
'ecommerce'... warning: You
appear to have cloned an empty repository. done. [root@ststor01
kodekloudrepos]# ll total 4 drwxr-xr-x 3
root root 4096 Jul 30 10:25 ecommerce [root@ststor01
kodekloudrepos]# |
|
[root@ststor01
kodekloudrepos]# ll ecommerce/ total 0 [root@ststor01
kodekloudrepos]# |
Happy Learning!!!!
0 Comments