1.什么是github?
github是一个免费的远程仓库,还是一个开源协作社区,通过github,既可以让别人参与你的开源项目,也可以参与别人的开源项目。
github地址:https://github.com/
?
2.github相关命令
2.1 Set Up Git
?
配置全局信息:
gitconfig? --global user.name “YOUR NAME” ? ?配置用户名
gitconfig? --global user.email?? “YOUR EMAIL ADDRESS” 配置邮箱地址
git config --global core.autocrlf true ?配置操作系统因换行符提示??
?
2.2 Create repositories创建远程版本库
?
直接在github点击 + 创建git项目 .
?
2.3 Fork repositories 克隆项目
?git clone https://github.com/YOUR NAME/projectName 克隆远程仓库项目
?
2.4 work together 协作开发
git remote –v #查看远程仓库
git remote add upstream URL?? #添加远程仓库同步地址
?
2.5 添加本地和远程仓库秘钥
ssh-keygen -t rsa -C "[email address]"
?
?
原文:http://yanan0628.iteye.com/blog/2272078