The Nautilus development team requested the creation of a Git repository for their new application development project.
- Install Git: Use the
yum
package manager to install Git on the Storage Server. - Create a Repository: Set up a bare repository named
/opt/apps.git
on the Storage Server.
- Log in to the Storage Server
ssh your_username@app_server_ip
- Install Git
sudo yum install git -y
- Create a Bare Repository
sudo git init --bare /opt/apps.git
- Verify Repository Creation
ls -l /opt/apps.git
- Command Explanation:
- ssh your_username@storage_server_ip: Connects to the Storage Server.
- sudo yum install git -y: Installs Git using
yum
package manager. - sudo git init --bare /opt/apps.git: Initializes a bare Git repository in
/opt/apps.git
. - ls -l /opt/apps.git: Lists the contents of the newly created repository to verify its creation.