# Branch Protection doesn't work

**URL:** <https://forum.gitea.com/t/branch-protection-doesnt-work/9043>\
**Category:** Gitea Usages\
**Created:** [April 25, 2024, 5:05am UTC](https://forum.gitea.com/t/branch-protection-doesnt-work/9043 "2024-04-25T05:05:15Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![gitLatte](https://avatars.discourse-cdn.com/v4/letter/g/2acd7d/32.png) [@gitLatte](https://forum.gitea.com/u/gitLatte)\
**Post date:** [April 25, 2024, 5:05am UTC](https://forum.gitea.com/t/branch-protection-doesnt-work/9043/1 "2024-04-25T05:05:15Z")

</div>

I protected my branch ‘master’  
And whitelist can push only specific teams (like owners and admin)

It works on gitea Web!  
General team can’t push to master

But it doesn’t work on bash(git bash, powershell, cmd…)  
General team can push to master…

What should I do…?  
My gitea version is 1.21.4 (I used 1.21.10 and 1.21.11 too)

Thanks

---

<div class="post-metadata">

**Author:** ![lunny](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.gitea.com/lunny/32/4701_2.png) [@lunny](https://forum.gitea.com/u/lunny)\
**Post date:** [May 11, 2024, 6:13am UTC](https://forum.gitea.com/t/branch-protection-doesnt-work/9043/2 "2024-05-11T06:13:57Z")

</div>

Please check your git command line whether they remember your other users’ password or token.
