Error: Failed to call git rev-parse --git-dir --show-toplevel: "fatal: not a git repository (or any

Error: Failed to call git rev-parse --git-dir --show-toplevel: “fatal: not a git repository (or any of the parent directories): .git\n”

出错原因:要上传的目录没有初始化;
前提 先安装 git lfs 客户端 https://git-lfs.github.com/
解决办法:git init 再 git lfs install ------------------------------------->用于解决 github 不能上传100M文件的限制

Error: Failed to call git rev-parse --git-dir --show-toplevel: "fatal: not a git repository (or any