git 操作流程 创建版本库(目录) mkdir gitdir && cd gitdir && git init 添加文件到暂存区index/stage git add readme.md 提交文件到版本库 repository git commit -m 'add file'