본문 바로가기

Operating Systems/Linux

[ Linux ] GIT 서버 설치

[ GIT 서버 ]

yum -y install git-core

useradd git

echo -e "1234\n1234" | passwd git

mkdir -p /home/git/linux_proj1.git

cd /home/git/linux_proj1.git

git init --bare --share

chown -R git:git /home/git/linux_proj1.git

 

[ 윈도우 클라이언트 ]

git clone git@192.168.108.67:linux_proj1.git

git status

git add *

-- git user 등록
git config --global user.email "hmwoo@hmwoo.com"

git config --global user.name "hmwoo"

git commit -m "first commit"

-- 저장소 확인
git remote

-- 원격 저장소 업로드
git push origin master

'Operating Systems > Linux' 카테고리의 다른 글

[ Linux ] LVM 활용  (0) 2021.10.01
[ Linux ] ORACLE 19c 서버 설치  (0) 2021.09.30
[ Linux ] NFS 서버 설치  (0) 2021.09.25
[ Linux ] VNC 서버 설치  (0) 2021.09.23
[ Linux ] Cron 활용  (0) 2021.08.22