因为原来提交过,仓库有联系。执行下面命令就可以了。
git rm -r --cached .
git add .git commit -m 'update .gitignore'
git push
git 创建本地分支对应远程已存在的分支
git checkout -t origin/dev
因为原来提交过,仓库有联系。执行下面命令就可以了。
git rm -r --cached .
git add .git commit -m 'update .gitignore'
git push
git 创建本地分支对应远程已存在的分支
git checkout -t origin/dev