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
@Carolyn Van Slyck (who maintains that add-on) might be able to weigh in here.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Online forums and learning are now in one easy-to-use experience.
By continuing, you accept the updated Community Terms of Use and acknowledge the Privacy Policy. Your public name, photo, and achievements may be publicly visible and available in search engines.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.