git : error: failed to push some refs to xxxxx

 

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

Guess you like

Origin www.cnblogs.com/xiangsui/p/11511320.html