第一步下载
https://git-scm.com/download/win
安装教程
https://blog.csdn.net/lvkelly/article/details/54666868
设置用户名地址
$ git config --global user.name "XXXX"
$ git config --global user.email "XXX@XXcom"
第二步在github上面创建一个远程仓库
https://www.liaoxuefeng.com/wiki/0013739516305929606dd18361248578c67b8067c8c017b000/001375233990231ac8cf32ef1b24887a5209f83e01cb94b000
第三步从远程克隆代码到本地
git clone https://github.com/XXX
然后编辑一个文件
git add test.php
git commit -m '注释'
提交到本地库
第四步提交到远程
git push -u origin master
git更新代码 https://blog.csdn.net/zwhfyy/article/details/8625228
git reset --hard
git pull 拉取远程代码
git diff 以后 按Q退出
其他
git远程密码修改以后 本地删除保存的密码账号
https://blog.csdn.net/qq_38423105/article/details/80942234