http://help.github.com/win-set-up-git/
book: profit.zh.pdf
---4.9 Git托管服务
# 这一节介绍一下在GitHub 建立账户和开启新项目的过程
4.9.1 GitHub
# 私有仓库 - 收费
# 开源(public) - 免费
4.9.2 create account
# 1. login in https://github.com/CoreMark
# 2. Click 'New Repository' button
# 3. 填写repository Name,只能创建public repository。选择私有的,则需要付费。
# 4. Click 'Create Repository'. 创建完毕。
# 5. Clone the project.
1) $ git clone https://CoreMark@github.com/CoreMark/RN_DEMO_1.git [成功]
使用以上命令:将在执行命令的folder下生成一个folder named 'RN_DEMO_1'。
2) $ git clone git://hithub.com/CoreMark/RN_DEMO_1.git gitRepository1
使用以上命令: fatal: unable to connect to hithub.com: hithub.com[0: 74.117.114.78]: errno=No error
3) $ git clone git@github.com:CoreMark/RN_DEMO1.git gitRepository2 [成功]
使用以上命令: The authenticity of host 'github.com (207.97.227.239)' can't be established.
RSA key fingerprint is 16:27:ac:a5:76:28:2d:36:63:1b:56:4d:eb:df:a6:48.
Are you sure you want to continue connecting (yes/no)? yes
Warning: Permanently added 'github.com,207.97.227.239' (RSA) to the list of known hosts.
Permission denied (publickey).
fatal: The remote end hung up unexpectedly
解决办法: http://help.github.com/win-set-up-git/
## Check for SSH keys. Have an existing key pair? You can skip to Step 4. --> $ cd ~/.ssh
## Generate a new SSH key. --> ssh-keygen -t rsa -C "your_email@youremail.com"
## 输入密码