21/100 Setup GIT Repository on Storage Server
The Nautilus development team has provided requirements to the DevOps team for a new application development project, specifically requesting the establishment of a Git repository. Follow the instructions below to create the Git repository on the Storage server
in the Stratos DC:
1. Utilize yum
to install the git
package on the Storage Server
.
2 . Create a bare repository named /opt/blog.git
(ensure exact name usage).
ssh natash@ststor01
sudo su -
dnf install git -y
git init --bare /opt/blog.git
ls -la /opt/total 12drwxr-xr-x 1 root root 4096 Sep 12 11:51 .
drwxr-xr-x 1 root root 4096 Sep 12 11:46 ..
drwxr-xr-x 7 root root 4096 Sep 12 11:51 blog.git