CentOS GIT 서버 구축
OS/Linux2018. 3. 28. 14:09
# yum install git git-server -y
# mkdir repository
# cd /home/repo
# mkdir nubkru.git
# cd nubkru.git
# git init --bare --shared
# vi post-receive
# #!/bin/bash
GIT_WROK_TREE=/usr/share/nginx/html/lfg git checkout -f
# chmod 755 post-receive
# cd
# mkdir .ssh
# ssh-keygen
# cd .ssh
# scp id_rsa.pub root@localhost:/home/repo/id_rsa.CHANGE_NAME.pub
'OS > Linux' 카테고리의 다른 글
버추얼박스 + CentOS 네트워크 설정 (0) | 2018.04.14 |
---|---|
CENTOS 맥주소 및 NIC UUID gen (0) | 2018.04.11 |
centos 기본 내장 mariadb 삭제 하고 mysql 5.6 설치 (Transaction Check Error: 해결법) (0) | 2018.03.25 |
centos 6.9 최소 설치 후 환경설정 (0) | 2017.10.03 |
centos GPG-KEY 에러 (0) | 2017.10.03 |