Git Server Under Ubuntu Server in Virtual Box

See the previouse step here.

First,
apt-get install git-core # maybe suggest installing "git" without "-core"

Next step, i forget..


# SSH Section unstable tutorial, so keep it in mind.
ssh-keygen -t rsa
cat ~/.ssh/id_rsa.pub && ssh git@ipaddress "cat >> ~/.ssh/authorized_keys"

# Creating repo (Server side)
inside /home/git
mkdir repo
cd repo
mkdir test.git
git init --bare test.git
cd test.git
git remote add origin git@ipaddress:repo/test.git

# Clone repo (Client side)
cd
mkdir gitlocal
cd gitlocal
git clone git@ipaddress:repo/test.git
# Enter password (it should suing id_rsa.pub rather than login from ssh)

These must be fixed later...

Tidak ada komentar:

Posting Komentar