git 사용법 Ubuntu



Server PC에 git 계정 생성

adduser git

mkdir /home/git/repository
cd repository
git init
git add .
git commit -m "fisrt commit"

git clone --bare . /home/git/name.git <- name은 아무거나 하면 된다.

Local PC
작업하고 있는 폴더에서
git init
git add .
git commit

Local PC -> Server PC
git push ssh://git@serverip/home/git/name.git master

Server PC -> Local PC
git pull ssh://git@serverip/home/git/name.git master

트랙백

이 글과 관련된 글 쓰기 (트랙백 보내기)
TrackbackURL : http://prometheo.egloos.com/tb/3235686 [도움말]