一、安装Git由于mac git的地址http://code.google.com/p/git-osx-installer/被墙,被迫使用源码安装,源码可以从http://kernel.org/pub/software/scm/git/下载,编译源码需要先安装xcode,参考http://developer.apple.com。编译安装1.解压 tar xjvf git-1.7.4.1.tar.tar.bz22. 编译 cd git-1.7.4.1 ./configure --prefix=/usr/local make3.安装 sudo make install Ok 了,which git试一下~二、设置SSHgithub使用SSH链接,需要设置SSH1.检查SSH key cd ~/.ssh2.备份已有的key,(如果有的话) mkdir key_backup mv id_rsa* key_backup3.生成SSH key$ ssh-keygen -t rsa -C jiang.bo.hit@gmail.comGenerating public/private rsa key pair.Enter file in which to save the key (/Users/jiangbo/.ssh/id_rsa): Enter passphrase (empty for no passphrase):Enter same passphrase again:Your identification has been saved in yes.Your public key has been saved in id_rsa.pub.The key fingerprint is:fb:c4:b0:e0:47:fd:be:e0:fb:ea:73:ef:a8:29:d5:22 jiang.bo.hit@gmail.comThe key"s randomart image is:+--[ RSA 2048]----+| || || || . || . S .. || . oE=o.. || . +o+.. || ..+.+.. || oOB=+o |+-----------------+4.将SSH key添加到GitHub登录到GitHub页面,Account Settings->SSH Public Keys->Add another key将生成的key(id_rsa.pub文件)内容copy到输入框中,save。5.测试链接$ ssh git@github.comThe 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)? yesPTY allocation request failed on channel 0Hi jiang-bo! You"ve successfully authenticated, but GitHub does not provide shell access. Connection to github.com closed.别担心,这是正常情况。三、设置个人信息$ git config --global user.name "Bo Jiang"$ git config --global user.email "jiang.bo.hit@gmail.com"Android + Eclipse +ADT安装完全教程Ubuntu 11.04下Text Editor打开中文文本出现乱码的解决办法相关资讯 Mac OS X Git
- Git 2.10 发布- Push、Worktree、 (09月21日)
- 使用Eclipse上传/下载Git项目 (05月29日)
- Git 2.8.2 发布,源代码管理系统 (05月03日)
| - Git 技能学习总结 (08月05日)
- Git诞生11年后,BitKeeper宣布开源 (05月11日)
- Git 联机版注册使用 (03月30日)
|
本文评论 查看全部评论 (0)