It's not the same without you

Join the community to find out what other Atlassian users are discussing, debating and creating.

Atlassian Community Hero Image Collage

Force field addon

I installed this plugin to protect my master branch.

However, I am still able to push --force to master. How can I prevent the force push to master? What step am I missing?


$ git checkout master
Already on 'master'
Your branch is up-to-date with 'origin/master'.
$ git reset --hard
HEAD is now at 0a0cb0c push should get blocked. force again
$ vi file1
$ git add file1
$ git commit -m "push should fail"
[master 1ca0131] push should fail
1 file changed, 1 insertion(+)
$ git push --force origin master
Counting objects: 7, done.
Delta compression using up to 8 threads.
Compressing objects: 100% (3/3), done.
Writing objects: 100% (3/3), 361 bytes | 0 bytes/s, done.
Total 3 (delta 1), reused 0 (delta 0)
0a0cb0c..1ca0131 master -> master



2 answers

@Carolyn Van Slyck (who maintains that add-on) might be able to weigh in here.

Installing the add-on and enabling it in a repository are 2 different things. Make sure you did enable this hook for this particular repository.

Suggest an answer

Log in or Sign up to answer
Community showcase
Published in Bitbucket Pipelines

Building a Bitbucket Pipe as a casual coder :  #!/bin/bash source "$(dirname "$0")/" enable_debug extra_args="" if [[ "${DEBUG}" == "true" ]]; then extra_args="--verbose" fi # mandatory variables R...

4,025 views 4 22
Read article

Community Events

Connect with like-minded Atlassian users at free events near you!

Find an event

Connect with like-minded Atlassian users at free events near you!

Unfortunately there are no Community Events near you at the moment.

Host an event

You're one step closer to meeting fellow Atlassian users at your local event. Learn more about Community Events

Events near you