github简单使用
来源:互联网 发布:二手丝袜淘宝 编辑:程序博客网 时间:2024/06/11 07:25
使用github:
参考地址:http://www.runoob.com/w3cnote/git-guide.html
http://blog.csdn.net/wzq9706/article/details/9864847
1、注册github
2、本地配置git
$ssh-kengen -t rsa -C "helloworld@qq.com" //生成公私钥,私钥是 ~/.ssh/id_rsa, 公钥是 ~/.ssh/id_rsa.pub。 命令会要输入密码,是注册github时候的密码。粘贴.pub里面的公钥到github账户设置上。
$ssh -T git@github.com //验证一下
=========================================================================================
在github上先创建仓库,然后本地创建仓库添加自己的代码文件。把本地仓库连接到github上的仓库,就可以提交到github上备份了。
$git remote add origin git@github.com:ZhangHuMingZi/CangKuMingZi.git //会在.git/config下面多出来配置信息
$git push -u origin master //-u 是说如果有多个远程库连接着,-u指定一个,origin是远程主机名,master是本地分支名。这个命令提交本地这个仓库的东西到远程的仓库。这样就可以在github上备份了。
- GitHub的简单使用
- github简单使用教程
- github简单使用教程
- github简单使用教程
- github简单使用教程
- github 简单使用教程
- github简单使用教程
- github简单使用教程
- GIThub简单使用教程
- github简单使用
- github简单使用教程
- github简单使用教程
- github简单使用教程
- github简单使用教程
- github简单使用教程
- github简单使用教程
- github简单使用教程
- github简单使用
- JQ滚动条
- Struts 2 的输入校验(2)
- 使用Jackson解析JSON和序列化
- 数据标定小工具
- struts2中web.xml主要配置
- github简单使用
- 网络版五子棋程序的开发
- Android调用系统拔号和短信
- 数码管的显示(共阳)
- Navicat for Mysql SSH tunnel 用跳板机解决方案
- 一道关于sql的面试题
- 909422229__关于JS_Element获取元素与属性的总结
- Java小数点保留问题
- linux下查看所有用户及所有用户组