gitbash客户端使用ssh连接github
来源:互联网 发布:看图王软件下载 编辑:程序博客网 时间:2024/05/29 07:49
一、创建SSH key
ssh-keygen -t rsa -C "youremail@example.com"
一路回车即可。公密匙存在~/.ssh/id_rsa.pub中,复制其中的内容到剪贴板
二、Github账户中添加SSH key
你的github账户->settings->SSH and GPG keys->new SSH key
粘贴到其中即可
三、测试连接
配置账户
git config --global user.email "you@example.com"
配置邮件git config --global user.name "Your Name"
配置用户名测试连接到github
ssh git@github.com
正常情况下,回显如下:
You’ve successfully authenticated, but GitHub does not provide shell access
四、本地仓库推送到github
创建github仓库test
创建完之后出现一些提示创建本地仓库
git initecho "# test" >> README.mdgit add README.mdgit commit -m "first commit"
- 将本地仓库连接并推送至远程仓库
git remote add origin git@github.com:InspireCode/test.gitgit push -u origin master
阅读全文
0 0
- gitbash客户端使用ssh连接github
- 使用ssh连接github
- github使用gitbash推送下载
- GitHub GitBash配置SSH访问方式
- ssh远程登录github及其它云服务器+gitbash使用 学习笔记
- [github]二、使用ssh连接github
- 使用GitBash向gitHub上同步代码
- GitBash上传项目到github,以及SSH免密码上传
- 使用SSH密钥连接Github【图文教程】
- ubuntu下git使用ssh连接github
- 使用SSH密钥连接Github【图文教程】
- gitbash使用
- GitBash使用
- 使用gitbash上传代码到github远程仓库简单教程
- ssh客户端CRT连接linux使用技巧
- gitHub:配置SSH连接GitHub
- github ssh连接
- 配置SSH连接GitHub
- 图片加载的第三方库Glide与Picasso
- C++学习(60)
- JavaScript 错误与调试
- Caffe fine-tuning 微调网络
- 程序的时间复杂度计算
- gitbash客户端使用ssh连接github
- JFinal+Hessian调用远程服务
- 栈
- Configuration--typeAliases(三-2)
- Thread.interrupt()方法理解
- Nginx反向代理实现负载均衡总结
- Mongodb从0到1系列三: 条件查询、大小写
- js动态改变css样式
- threeSum