1.在本地新建一个文件夹,或者现有的文件夹,右键点击空白处,选择git bash here2.输入git init 回车初始化仓库,可以看到生成了.git文件,默认是master分支,至此,本地仓库初始化完成