原因:项目上传后,已经建立git管理的连接了,需要全部切断重新建立。
创建.gitignore文件命令
文件夹打开工程,右键打开Git bash here,执行命令
touch .gitignore
编辑.gitignore文件,忽略不需要管理的文件
保存后执行以下语句。
git rm -r --cached
git add .
git commit -m 'add .gitignore'
git push origin master
原因:项目上传后,已经建立git管理的连接了,需要全部切断重新建立。
创建.gitignore文件命令
文件夹打开工程,右键打开Git bash here,执行命令
touch .gitignore
编辑.gitignore文件,忽略不需要管理的文件
保存后执行以下语句。
git rm -r --cached
git add .
git commit -m 'add .gitignore'
git push origin master