1.本地搭建Git环境

1)下载git安装包,本地安装(我安装的是Git-2.8.1-64-bit.exe,默认即可)

2)配置自己的用户名和邮箱

git config --global user.name "your_name" 

git config --global user.email "your_email" 

 

2.Github上创建项目,点击create repository创建项目,记录weburl如 https://github.com/Lorryrui/PythonScraping.git

 

3.clone到本地

git clone https://github.com/Lorryrui/PythonScraping.git

 

4.在本地目录中增加/修改需要的文件;将所有改动加入缓存区;提交

cd PythonScraping #切换到工作目录

git add .  #所有改动加入缓存区

git commit -m "备注信息"  #提交改动

 

5.代码提交至远程服务器(Github)

git push origin master #提交至Github,有输入账号密码的提示框。

   

posted on 2016-07-26 09:03  Lorryrui  阅读(173)  评论(0编辑  收藏  举报