下载git clone URL添加文件到暂存区git add [file1] [file2] ...git add [dir]git add .显示变更文件git status 显示diff文件尚未缓存的改动:git diff查看已缓存的改动: git diff --cached查看已缓存的与未缓存