我用git add file添加文件时出现这样错误:
fatal: Not a git repository (or any of the parent directories): .git
提示说没有.git这样一个目录,解决办法如下:
git init
在做git commit 时,出现error: Error building trees
在网上看到解决方案是
git reset --mixed
git add test.txt
git commit -m "cc" 引号内的内容可以随意改动
git push origin master
github 新手指南:
https://blog.csdn.net/qq_37512323/article/details/80693445
如何在Github中删除已有仓库或文件:
https://segmentfault.com/a/1190000018921326