I’m trying to deploy my project to GitHub. All good, when I write npm run build, then npm deploy. But when I write git push origin master, then I saw this
! [rejected] master -> master (fetch first)
error: failed to push some refs to 'https://github.com/voloxatyj/React-task.git'
hint: Updates were rejected because the remote contains work that you do
hint: not have locally. This is usually caused by another repository pushing
hint: to the same ref. You may want to first integrate the remote changes
hint: (e.g., 'git pull ...') before pushing again.
hint: See the 'Note about fast-forwards' in 'git push --help' for details.
In settings(Git domain) I choose gh-pages branch. And install this package, and write in package.json, homepage and scripts. What I’m doing wrong????