Receiving Errors when attempting to push VSCode to Repo. #166130
Replies: 2 comments 3 replies
-
|
hi! |
Beta Was this translation helpful? Give feedback.
-
|
you're running into a branch protection rule issue, which is why you're getting this error: push declined due to repository rule violations Go to your GitHub repo (e.g., https://github.com/rs381/RomaWebServices). Click on Settings in the top bar of the repo (not your GitHub profile). In the left sidebar, scroll down to Code and automation > Rules. Click on Rules (this replaces the older “Branches” section). Look for any rules applied to the main branch. Either: Edit the rule and uncheck options like "Require pull request before merging", "Require status checks", etc., Delete the rule if it's too strict for your workflow (click on the ... button next to the rule). After adjusting, try pushing your changes again: |
Beta Was this translation helpful? Give feedback.


Uh oh!
There was an error while loading. Please reload this page.
-
Keep receiving this error when attempting to commit my code to my Repo:
To https://github.com/rs381/RomaWebServices.git ! [remote rejected] main -> main (push declined due to repository rule violations) error: failed to push some refs to 'https://github.com/rs381/RomaWebServices.git'I asked ChatGPT, and it recommended changing my Branch repo rules

, but when I attempt to do so following it's directions, I cannot find anything regarding Branches in my repo settings. (Refer to Screenshot below.)
Please help, as I cannot contact Github support (don't have a paid plan.).
Beta Was this translation helpful? Give feedback.
All reactions