How do i protect my main branch from direct pushes? #195760
-
🏷️ Discussion TypeQuestion 💬 Feature/Topic AreaARC (Actions Runner Controller) Discussion Detailsi keep accidentally pushing directly to main, how do i set it up so that it requires a pull request before merging? |
Beta Was this translation helpful? Give feedback.
Answered by
May-00048
May 14, 2026
Replies: 1 comment
-
|
Settings → Branches → Add branch protection rule |
Beta Was this translation helpful? Give feedback.
0 replies
Answer selected by
auth23noreply-ship-it
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Settings → Branches → Add branch protection rule