使用git连接到Github
来源:互联网 发布:澳门航空怎么样 知乎 编辑:程序博客网 时间:2024/06/04 18:12
直奔主题,使用git连接到Github步骤如下:
1. 安装git
yum install git
或者
sudo get-apt install git git-core
2. 全局配置
git config --global user.name "furzoom"git config --global user.email "mn@furzoom.com"
3. 生成密钥
ssh-keygen -t rsa -C "mn@furzoom.com"
有任何提示,直接回车即可。
4. 将公钥提交到Github
复制文件~/.ssh/id_rsa.pub
中的内容到Github中。
vim ~/.ssh/id_rsa_pub
复制文件中的内容,打开https://github.com/settings/ssh,并点击Add SSH key
,将内容粘贴到Key中。
5. 测试连接状态
$ ssh git@github.comThe authenticity of host 'github.com (192.30.252.129)' can't be established.RSA key fingerprint is XXXXXXXXX.Are you sure you want to continue connecting (yes/no)? yes Warning: Permanently added the RSA host key for IP address '192.30.252.128' to the list of known hosts.PTY allocation request failed on channel 0Hi Furzoom! You've successfully authenticated, but GitHub does not provide shell access. Connection to github.com closed.$
出现类似如下上信息表示连接成功了。剩下的操作就是正常的git操作了。
更多请参考枫竹梦。
0 0
- 使用git连接到Github
- windows 使用git 远程连接到github
- vs2017 使用Git 连接Github
- git生成ssh并连接到github
- Linux下把git连接到github
- git&github 使用git将本地项目push到github
- sublime上使用git连接github
- git配置连接github以及使用笔记
- ubuntu下git使用ssh连接github
- 使用Git,并且与GitHub建立连接
- git连接github后的使用
- 使用Git上传项目代码到github
- 使用git上传代码到github<一>
- 使用Git上传项目代码到github
- 如何使用git推送本地文件到github
- 使用Git上传项目代码到github
- 使用git命令上传项目到GitHub
- 使用git客户端提交代码到github
- STL小结
- ios自定义字符 NSMutableAttributedString
- 结对编程(Pair programming)
- RxAndroid
- Axure7版本下载、汉化及序列号
- 使用git连接到Github
- mysql中文乱码
- iOS App发布流程
- core_param的使用
- Hibernate通过注解实现复合主键
- 学习python的文件处理
- 字体的大小(pt)和像素(px)如何转换?
- 匹配
- c#验证码