git checkout master git merge origin/master --allow-unrelated-histories Resolve conflict, then git add -A . git commit -m "Upload" git push