- 删除暂存区的文件夹,(node_modules)为要被删除的文件夹
git rm -r --cached <folder>
- refusing to merge unrelated histories (develop)为拉取的分支
git pull origin develop --allow-unrelated-histories
- 关联远程分支
git branch --set-upstream-to=origin/<branch> <current_branch>
- 添加远程仓库地址
git remote add origin <url>
网友评论