Github桌面工具提交代码不成功

提示:Desktop is unable to push commits to this branch because there are commits on the remote that are not present on your local branch.

Desktop is unable to push commits to this branch 
because there are commits on the remote that are not present on your local branch. 
Fetch these new commits before pushing in order to reconcile them with your local commits.

如果是将本地已有项目推向github仓库,出现此类问题应先尝试执行如下命令:

git pull origin master --allow-unrelated-histories

执行后通过github桌面查看是否有文件出现冲突,如果有,先解决冲突,最后,再尝试执行push操作。