Git

1、进入到要托管的项目根目录,右键启动Git Bash命令行 $

2、$ git clone https://github.com/.../abc.git

3、将托管项目拷贝到该目录 cd test 进入到该托管项目的根目录

4、输入 git add .    将改动的地方添加到版本管理器

5、输入 git  commit -m "changes log"  提交到本地的版本控制库里,引号里面是你对本次提交的说明信息。

6、在全局空间中添加新的用户

  git config --global user.name "harvey liu" 

  git config --global user.email harvey_liu@163.com

   (删除git全局配置文件中的用户名,git config --unset --global user.name; git config --unset --global user.email)

7、最后输入

  git push -u origin master  

  将你本地的仓库提交到你的github账号里,

  此时会要求你输入你的github的账号和密码。

8、回到你的github.com中的项目页。

  里面的文件是不是已经发生改变了?

  至此,

  github项目已经成功更新。

 

原文地址:https://www.cnblogs.com/waterair/p/6744758.html