The reason: in order to upload a new file local and remote files should be merged
solution:
1, first pull down automatically combined (do not worry)
git pull origin master
If the above code is given by:
git pull origin master --allow-unrelated-histories
2, then upload
git push -u origin master
Reference article: https: //blog.csdn.net/winnershili/article/details/78888548