Howto setup GIT server

Posted on October 20, 2008. Filed under: Linux, Programming |

After several testing, following method fits my own need:

easy use and support ssh upload and download

1. Remote git server side
    mkdir abc.git
    GIT_DIR=/path/to/abc.git git-init-db
    git-receive-pack /path/to/abc.git
2. Local git side
    mkdir abcdef
    cd abcdef
    git-add file1
    git-commit file1
    git-push username@abcgitserver:/path/to/abc.git/ master
    check the useful:
    mkdir ddde
    cd ddde
    git-clone username@abcgitserver:/path/to/abc/git

Make a Comment

Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out /  Change )

Google photo

You are commenting using your Google account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s

Liked it here?
Why not try sites on the blogroll...

%d bloggers like this: