[tool-git] Create Github repository

 

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"

## 输入密码

 

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值