Ubuntu9.10安装Git,Git 和Github初次使用 – fuhao715的个人空间 – 开源中国社区

工作环境:Ubuntu9.10.github

A、Git安装

1、申请GitHub帐户 xxx ,创建名为new-project的新Repository

2、安装Git客户端(Linux)

#sudo apt-get install git git-core

果你已经安装好git那么通过下面命令来更新版本库。git clone git://git.kernel.org/pub/scm/git/git.git

3、 生成密钥对,这样项目可以push到 GitHub上

#ssh-keygen -t rsa -C “xxx@gmail.com”

4、将.ssh/id_rsa.pub拷贝到GitHub网站

5、修改~/etc/.ssh/ssh_config.

PasswordAuthentication no 去掉#并把 yes改为NO

HostbasedAuthentication no 去掉#

IdentityFile ~/.ssh/identity 去掉#

IdentityFile ~/.ssh/id_rsa 去掉#

IdentityFile ~/.ssh/id_dsa 去掉#

Port 22 去掉#

Protocol 2,1 去掉#

新增:

通过Ubuntu9.10安装Git,Git 和Github初次使用 – fuhao715的个人空间 – 开源中国社区.

Advertisements

发表评论

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

WordPress.com 徽标

You are commenting using your WordPress.com account. Log Out /  更改 )

Google+ photo

You are commenting using your Google+ account. Log Out /  更改 )

Twitter picture

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

Facebook photo

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

Connecting to %s

This site uses Akismet to reduce spam. Learn how your comment data is processed.