Git Clone Repositories

Rajesh
Apr 13, 2024

Kodekloud Engineer Task

Scenario:

Solution:

  • First SSH in to the storage server.
  • Bare git repository(A bare repository contains only the . git/ part, no files you can directly edit.) such as media.git found in the /opt folder.
  • Task is to clone the media.git to the folder /usr/src/kodekloudrepos folder.
  • In the kodeklourepos directory , clone the bare repository.
cd /usr/src/kodekloudrepos
git clone /opt/media.git
  • Check the .git folder present in the media folder after cloning to the kodekloudrepos folder.
  • After verifying the .git folder, submitting it to finish the task.

Thanks for checking this small article. Have a Good day !!!

--

--