I committed a project to my local Git repository and pushed it to GitHub. I then amended my local commit and tried to push the amended commit to GitHub. That gave me an error:
hint: Updates were rejected because the tip of your current branch is behind its remote counterpart. Integrate the remote changes (e.g. 'git pull ...') before pushing again. See the 'Note about fast-forwards' in 'git push --help' for details.
I'm confused what I should pull from which repository. Or, as I'm the only person working on this, can I sort it by rebasing? What? Where?
Thanks!