Git: Setting up git on GitCafe

By Xah Lee. Date: . Last updated: .

This page show you how to setup git on GitCafe, the minimum steps you need to do, without installing extra things.

GitCafe is a git hosting website for Chinese, based in China.

Step 1: Create a Account

GitCafe logo 2

First, go to the site http://gitcafe.com/ to create a account.

Step 2: Setup SSH Key

Now, generate your ssh key. On terminal:

# generating a ssh rsa key for gitcafe site
ssh-keygen -t rsa -C "your_email@example.com" -f ~/.ssh/gitcafe

This will create 2 files:

Copy the content of your public key, and go to https://gitcafe.com/account (login first), and paste it there.

then, create this file ~/.ssh/config and add these lines:

Host gitcafe.com www.gitcafe.com
    IdentityFile ~/.ssh/gitcafe

Then, on gitcafe website, click to create a new project.

Then, on your machine, add gitcafe URL:

cd existing dir of git repository

# associate a name to a git project remote repository
git remote add gitcafe git@gitcafe.com:xahlee/xah_emacs_init.git

# push the master branch to a remote server named “gitcafe”
git push gitcafe master

[see Practical git in 1 Hour]

Patreon me $5. Ask me question on patreon