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
Badges are a great way to show off community activity, whether you’re a newbie or a Champion.Learn more
After spinning my wheels trying to get organized enough to write a book for National Novel Writing Month (NaNoWriMo) I took my affinity for Atlassian products from my work life and decided to tr...
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