一、创建版本库
git init
1.把文件添加到版本库中
创建文件txt——》git add命令把文件天添加到暂存区——》git commit -m "注释"提交到仓库——》git status查看状态/git diff 文件 查看文件修改内
二、版本退回
三、创建本地仓库、克隆远程仓库
本地搭建仓库
git init
克隆远程仓库
git clone [URL]
文件四种状态
![enter description here][2]
git拉取指定分支
git clone -b 指定分支 https://........git