Git force update is necessary when we need to refine previous commits like fixing typo in log message, add some missing files in a specific commit or remove a unnecessary commit in the log history. We usually do it via below command
$ git push -f
It works in most cases but an exception. If the server denies the non-fast-forward commits, it failed. To fix this problem, try to accept the non-fast-forward commit via below procedures in Server side.
1. Log into Git server
2. Enter the repository directory you want to push
3. Apply below command to disable the non-fast-forward deny
$ git config receive.denynonfastforwards false