git 简单介绍
版本控制工具,用来记录变化过程
git 常用命令
git pull //服务端下拉
git add fileName //添加到缓存区
git diff //查看修改的内容
git checkout fileName
git commit -m"this is a commit"
git push //提交远程仓库
git 原理
1、git分为4层,工作空间、缓存区、本地仓库、远程仓库


2、三种对象,tree对象记录目录,blob对象记录文件,commit记录每次提交的文件快照

3、储存对象

4、git引用
Git的引用(references)保存在.git/refs目录下。git的引用类似于一个指针,它指向的是某一个hash键值。
网友评论