Git第一次提交到远程
问题
远程创建仓库后,第一次push到远程,本地提示
Updates were rejected because the remote contains work that you do
解决
使git允许合并不相关的历史,使用命令
- git pull origin master --allow-unrelated-histories
远程创建仓库后,第一次push到远程,本地提示
Updates were rejected because the remote contains work that you do
使git允许合并不相关的历史,使用命令