git安装

winterSky 2018-07-05 AM 939℃ 0条

教程 廖雪峰
https://www.liaoxuefeng.com/wiki/0013739516305929606dd18361248578c67b8067c8c017b000/00137396287703354d8c6c01c904c7d9ff056ae23da865a000

第一步下载

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

标签: none

非特殊说明,本博所有文章均为博主原创。

评论啦~