you can use [no ci]
in your commit message like git commit -m 'my new commit message [no ci]'
-
In your current repository go to
Settings
-
From the right panel click on
Branches
-
Click on
Add rule
-
Set your prefered privilages on your prefered branch
You can also see this link