I am a new developer and just began learning git and github. I have two repos on github, one to show the code for a project and then I made another so I could host the page to show off the project with github pages. I made a small change and pushed the commit to my original remote repo, and then tried to push the commit to the other repo and I keep getting this error:
Owner@MICHAEL-WORK-PC MINGW64 ~/Desktop/Coding/Dual N-Back Game Project (master|MERGING)
$ git push github master
To https://github.com/michaelacook/michaelacook.github.io
! [rejected] master -> master (non-fast-forward)
error: failed to push some refs to 'https://github.com/michaelacook/michaelacook.github.io'
hint: Updates were rejected because the tip of your current branch is behind
hint: its remote counterpart. Integrate the remote changes (e.g.
hint: 'git pull ...') before pushing again.
hint: See the 'Note about fast-forwards' in 'git push --help' for details.
I have no idea why this is happening or how to fix it, I'm too new to git. Any suggestions? Thanks.