[ubuntu] git 서버 구축
ubuntu 서버에 git 서버 구축 하기 $$ ubuntu 에서 git 서버 설치 및 설정 1. 먼저 서버 최신 정보로 업데이트와 업그레이드 하기 > sudo apt-get update > sudo apt-get upgrade 2. git 설치 > sudo add-apt-repository ppa:git-core/ppa > sudo apt-get install git-core 3. git 설정 3-1. git 사용을 위한 대표계정 생성 > sudo adduser git *) 비번은 잊어 먹지 않도록 주의 3-2. 새 git 계정으로 로그인 > su git 3-3. home 디렉토리로 이동후, repos 디렉토리 생성 > cd ~ > mkdir repos > cd repos 3-4. 프로젝트 폴더 생성. > cd /home/git/repos/project.gitls > git init --bare --shared $$ client pc 에서 ubuntu 에 생성한 원격 git 저장소 복사하기(windows 기준) 1. git-bash.exe 설치 2. git-bash.exe 실행 3. 원격 git 저장소를 복사할 위치 에서 > git clone ssh://git@<host name or ip>:<port>/home/git/repos/project.git => ssh:// 다음 git 은 ubuntu에서 생성항 대표 계정 => port 는 22 로 우분투에 설정되어 있으면 생략가능 > git@<host name or ip> password :...