在使用idea的时候,当你首次提交git的时候会发现既不能pull也不能push,因为这是因为他们是两个不同的项目。这时候需要在你的Terminal中运行如下带代码:
git pull origin master --allow-unrelated-histories
在使用idea的时候,当你首次提交git的时候会发现既不能pull也不能push,因为这是因为他们是两个不同的项目。这时候需要在你的Terminal中运行如下带代码:
git pull origin master --allow-unrelated-histories