So I am creating a simple tetris game and I am trying to push my changes to GitHub. I created the repo through the Github site, I can add and commit my changes, but I cannot push to master. Does anybody know why? This is the message I get in my terminal:
~/Desktop/xxxxxxxx/tetris$ git push -u origin master
To https://github.com/xxxxx/TetrisReact
! [rejected] master -> master (non-fast-forward)
error: failed to push some refs to 'https://github.com/xxxxx/TetrisReact'
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.