1,本地建立git 仓库
2. 在github闯将相应的仓库
3. 使用下图建立连接
4. 只想pull 的时候出现 refusing to merge unrelated histories
5. 到根目录
6. 使用git bash here 执行
git pull origin master --allow-unrelated-histories。可以提交成功。
7 .再次push。即可成功
1,本地建立git 仓库
2. 在github闯将相应的仓库
3. 使用下图建立连接
4. 只想pull 的时候出现 refusing to merge unrelated histories
5. 到根目录
6. 使用git bash here 执行
git pull origin master --allow-unrelated-histories。可以提交成功。
7 .再次push。即可成功