I installed this plugin to protect my master branch. https://marketplace.atlassian.com/plugins/com.carolynvs.force-field
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
Bitbucket Pipelines helps me manage and automate a number of serverless deployments to AWS Lambda and this is how I do it. I'm building Node.js Lambda functions using node-lambda ...
Connect with like-minded Atlassian users at free events near you!Find a group
Connect with like-minded Atlassian users at free events near you!
Unfortunately there are no AUG chapters near you at the moment.Start an AUG
You're one step closer to meeting fellow Atlassian users at your local meet up. Learn more about AUGs
We're bringing product updates and pro tips on teamwork to ten cities around the world.Save your spot