情景一:已有项目代码文件夹

cd 项目代码所在的文件夹
git init

情景二:新建项目空白仓库

cd 某个文件夹
git init 你的项目文件夹
cd 你的项目文件夹