Force a push when testing git hooks
August 1, 2020•52 words
Fed up of creating dummy commits to test hooks, well try this DIRTY method.
$ git push origin :testing # delete the remote branch
$ git push origin testing # push again
You will prob have to run:
$ git config receive.denyDeleteCurrent false
on the remote repo to allow current branch deletions