fatal: not a git repository (or any of the parent directories): .git

输入git init

再重新执行添加文件的命令即可