1. git 详细安装教程
Git 详细安装教程(详解 Git 安装过程的每一个步骤)
git 下载地址
2. git 详细使用教程
3. git 使用的一些命令
git config --global user.email "xxxx@163.com"
git init #给本地创建一个代码仓库
git remote add origin http://xxxxx.git
git add '你本地仓库添加的文件.txt'
git commit -m '添加的文件-提交的注释信息' #此时已提交到暂存区
#git reset --mixed "HEAD^" 从暂存区把所有数据撤销
git push -u origin master # -u 表示第一次使用git push ,第二次使用就不用再加上-u,origin表示远程服务器上的分支,一般也是远程服务器master分支,master 表示本地仓库的master分支 ,https://www.runoob.com/git/git-push.html
#git pull origin master #从远程服务器拉取codes下来, https://www.runoob.com/git/git-pull.html,出现错误:https://www.cnblogs.com/niudaben/p/12503650.html