I did a get reset --hard SHA I then updated my Ruby version, did a bundle update and made some local changes. Then did a commit. Now that I want to push the branch to GitHub I am getting the following error and not sure why?
(non-fast-forward)
error: failed to push some refs to 'https://github.com/jgervin/stat-api.git'
To prevent you from losing history, non-fast-forward updates were rejected
Merge the remote changes before pushing again. See the 'Note about
fast-forwards' section of 'git push --help' for details.
enter code here
UPDATE:
I did a
git push -f
It said it did the force, but when I try to push again it says the same thing.
So I did another
git push -f
Says everything up to date
So did a git push and same error?