Cannot push to remote changes I made locally #145431
Replies: 5 comments
-
You are trying to commit on a protected branch Go to repo settings, in Settings -> Branches tab check if there is a specific protection rule for new-branch.if not
|
Beta Was this translation helpful? Give feedback.
-
I do not think there is any protection rule but still pushing to remote does not work |
Beta Was this translation helpful? Give feedback.
-
🕒 Discussion Activity Reminder 🕒 This Discussion has been labeled as dormant by an automated system for having no activity in the last 60 days. Please consider one the following actions: 1️⃣ Close as Out of Date: If the topic is no longer relevant, close the Discussion as 2️⃣ Provide More Information: Share additional details or context — or let the community know if you've found a solution on your own. 3️⃣ Mark a Reply as Answer: If your question has been answered by a reply, mark the most helpful reply as the solution. Note: This dormant notification will only apply to Discussions with the Thank you for helping bring this Discussion to a resolution! 💬 |
Beta Was this translation helpful? Give feedback.
-
Try setting your account to public |
Beta Was this translation helpful? Give feedback.
-
Try force push. |
Beta Was this translation helpful? Give feedback.
-
Select Topic Area
Question
Body
I cannot push from my local machine to remote. I get this error:
! [remote rejected] new-branch -> new-branch (push declined due to repository rule violations)
error: failed to push some refs to 'https://github.com/paolovicIta90/llm_stocks_recomendations.git'
I have changed the branch protection rule according to the following:
I have tried what was suggested in similar discussion but it s not working
Beta Was this translation helpful? Give feedback.
All reactions