跟踪文件的改动
1、版本库(仓库)
Git init 建立仓库
Git add 添加文件到仓库
Git commit 文件提交到仓库
Git log 查看提交日志
Git reset --hard commit_id 回退到历史版本
Git rm 删除文件
git clone从远程库中克隆代码
gti push 把本地内容推送到远程库中
2、工作区和暂存区
电脑里能看到的目录为工作区
git版本库中有暂存区,git add 就是把文件添加到暂存区,git commit就是把内容提交到当前分支上