The Nautilus development team requested the establishment of a new Git repository for their upcoming application development project. Additionally, the DevOps team provided the application development team with a copy of the existing repository on the Storage Server in Stratos DC.
- Install Git on the Storage Server.
- Create a bare repository named
/opt/apps.git
. - Clone the existing repository located at
/opt/media.git
to the/usr/src/kodekloudrepos
directory without making any modifications.
- Install Git on the Storage Server
sudo yum install git -y
- Create a Bare Repository
sudo git init --bare /opt/apps.git
- Clone the Existing Repository
sudo git clone /opt/media.git /usr/src/kodekloudrepos
- Command Explanation:
sudo yum install git -y: Installs Git using the `yum` package manager. sudo git init --bare /opt/apps.git: Initializes a bare Git repository at the specified path. sudo git clone /opt/media.git /usr/src/kodekloudrepos: Clones the specified repository to the target directory without altering the repository.