本地已有项目和gitlab项目合并
git pull https://gitlab.com/xxxx/xxx.git master --allow-unrelated-histories,–后面表示允许不相干的两个仓库合并,因为我们之前两个仓库是完全独立的,所以直接是没办法pull下来,需要加上后面参数才行
remote origin already exists
- 先删除远程 Git 仓库
$ git remote rm origin
- 再添加远程 Git 仓库
$ git remote add origin git@github.com:FBing/java-code-generator