장점 : GitLAB 또는 여러 버전 관리를 이용하여 서버를 관리하면 설정과 관련된 변경 이력및 백업등 여
러 가지 편리한점이 많습니다.
단점 : GitLAB 또는 사용자 컴퓨터에서 서버파일에 접근하므로 보안에 신경을 쓰셔야 합니다.
- 서버 구축 및 GitLAB, GIT, TortoiseGIT 는 미리 구축 해 놓으셔야 합니다.
1. GitLAB 서버에서 프로젝트 생성
- 분류별 프로젝트를 설정 하시는게 좋습니다 (DNS, Apache, Tomcat.....)
2. Linux 서버 저장소 생성 및 pull/push
#cd /var/named
#git init
#git remote add origin http://localhost/server/dns.git
#git add .
#git commit -m "first commit"
#git push -u origin master
Counting objects: 15, done.
Delta compression using up to 4 threads.
Compressing objects: 100% (5/5), done.
Writing objects: 100% (14/14), 1.75 KiB | 0 bytes/s, done.
Total 14 (delta 1), reused 0 (delta 0)
[GitLAB 확인]
3. Windows
TortoiseGit 마우스 우클릭
Clone