Skip to content

Latest commit

 

History

History
executable file
·
55 lines (36 loc) · 1.46 KB

TASK_138_Git_Clone_Repositories.md

File metadata and controls

executable file
·
55 lines (36 loc) · 1.46 KB

Start:         2023-06-27 21:26:00
Finished:   2023-06-27 21:29:18



TASK 138: Git Clone Repositories

Requirements

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/news.git

  • Clone this git repository under /usr/src/kodekloudrepos directory. Please do not try to make any changes in repo.


Steps

Login to the Storage server and switch to root. For the server credentials, check out the Project Nautilus documentation.

sshpass -p '*******' ssh -o StrictHostKeyChecking=no  [email protected]
sudo su -
*******

Proceed to the specified directory and clone the repo.

cd /usr/src/kodekloudrepos/ 
git clone /opt/news.git
[root@ststor01 kodekloudrepos]# ls -la
total 12
drwxr-xr-x 3 root root 4096 Jun 27 13:28 .
drwxr-xr-x 1 root root 4096 Jun 27 13:27 ..
drwxr-xr-x 3 root root 4096 Jun 27 13:28 news 

Resources