先说一下原因:此文件夹内有 .git 文件夹

解决方法:

1  删除 .git 文件夹(如果隐藏了,需要点击  查看->显示->勾选 隐藏的项目)

2  git rm --cached 文件夹名

3  git add .

4  git commit -m "版本信息"

5  git push -u origin master

注:如果报错:fatal: unable to access 'https://github.com/luolihui/web-learning.git/': Recv failure: Connection was reset

需要执行命令

git config --global --unset http.proxy

git config --global --unset https.proxy

在 cmd 中执行  ipconfig/flushdns   清理dns缓存

Logo

瓜分20万奖金 获得内推名额 丰厚实物奖励 易参与易上手

更多推荐