Can't force push exercise

Hello folks,

I am trying to force push a refactoring exercise, but the server is declining it. How might I go about solving this? Here is the information:

Exercise:

https://exercises.upcase.com/exercises/cleaning-up-a-controller

Message:

remote: FATAL: + refs/heads/master thiagoa/cleaning-up-a-controller thiagoa DENIED by fallthru
remote: error: hook declined to update refs/heads/master
To git@git.upcase.com:thiagoa/cleaning-up-a-controller.git
! [remote rejected] master → master (hook declined)

Thanks

Hi @thiagoa, sorry this wasn’t explained in the exercise system, but we only accept fast forward pushes to a master branch. The thinking is one of both safety, and that a revision history is useful.

That said, you can just push your most recent commit, unwound to be a fast forward on current origin/master, and push that. The diff we show is always relative the base commit of the exercise, so it will ignore any other commits you made along the way.

Hope that helps, and sorry again for the lack of clarity.

No problem. Thanks for the clarifications @christoomey, I’ve got this sorted out.