The first is that there is something in your project that is inconsistent with the history.
Push rejected: Push to origin/master was rejected
Push rejected: This is the
direct solution to push rejected , directly open the folder where you want to upload the code, right click git Bash Here then directly the following two commands to solve the problem
git pull origin master --allow-unrelated-histories
git push -u origin master -f