I am struggling to properly switch to my forked version of a repository. I was following the instructions here for how to do so, but I seem to be running into a few errors.
I was able to run
git remote add my-fork git@github...my-fork.git
git fetch my-fork
But when I tried
git push my-fork
I got the error
To github.com:...my-fork.git
! [rejected] master -> master (non-fast-forward)
error: failed to push some refs to 'git@github.com:...my-fork.git'
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 tried a number of online suggestions, including
git pull
git pull --rebase
git fetch origin
git merge origin master
These all gave the message "Already up to date." How do I resolve this?