github 使用总结
2014-06-07 22:51
162 查看
参考:https://help.github.com/articles/generating-ssh-keys#platform-linux
1、生成ssh key
2、添加 new key 到 ssh-agent
3、将pub key 上传到github
将 ~/.ssh/id_rsa.pub 中的内容粘贴到github ssh key中
4、测试连接是否正常
5、同步服务器中的仓库:
6、提交上传:
git add README
git commit -m "first commit"
git push origin master
1、生成ssh key
ssh-keygen -t rsa -C "your_email@example.com" # Creates a new ssh key, using the provided email as a label # Generating public/private rsa key pair. # Enter file in which to save the key (/home/you/.ssh/id_rsa):Enter passphrase (empty for no passphrase): [Type a passphrase] # Enter same passphrase again: [Type passphrase again]
2、添加 new key 到 ssh-agent
ssh-add ~/.ssh/id_rsa
3、将pub key 上传到github
将 ~/.ssh/id_rsa.pub 中的内容粘贴到github ssh key中
4、测试连接是否正常
ssh -T git@github.com # Attempts to ssh to github
5、同步服务器中的仓库:
$ git config --global user.name "your name"
$ git config --global user.email "your_email@youremail.com"
$ git clone git@github.com:yourname/yourRepo.git
6、提交上传:
git add README
git commit -m "first commit"
git push origin master
相关文章推荐
- 使用git/github管理ios项目 个人总结
- git+github个人使用心得总结(持续更新)
- Git & Github使用总结
- GitHub for windows 使用【创建、提交、同步、分支等操作】总结
- GITHUB使用及入门总结
- github使用总结
- Linux下Git和GitHub使用方法总结
- git和github使用总结
- Android开发之GitHub开源下拉刷新Android-PullToRefresh使用总结
- github使用中出现问题总结(持续更新)
- Git和GitHub使用总结
- Github使用总结(添加ssh-key,新建仓库,添加协作者)
- 使用git/github管理ios项目 个人总结
- 使用Github总结
- Linux下Git和GitHub使用方法总结
- git+github个人使用心得总结(持续更新)
- GitHub的使用总结
- Git和GitHub使用总结
- git 与oschina git ,github 上的使用错误实战总结
- Github使用总结(添加ssh-key,新建仓库,添加协作者) 转