Creating a pull request encountered 'Base branch does not allow updates. 's error. #65403
-
Select Topic AreaBug BodyI'm planning to contribute code to a repository, and after creating a pull request, I get an error: |
Beta Was this translation helpful? Give feedback.
Replies: 4 comments 4 replies
-
"Base branch does not allow updates" error while creating a pull request indicates that the repository's settings prevent updates to the base branch. This might be due to branch protection rules, such as requiring pull requests to be up to date with the base branch before they can be merged.
|
Beta Was this translation helpful? Give feedback.
-
In the case of contributing to another repo via forking
you can do this via CLI# assuming you are in main branch
git checkout -b <name_of_new_branch>
# if not, first checkout to main, then create the branch
git checkout main
git checkout -b <name_of_new_branch> or via github
You make changes to the branch and Commit as usualIf using CLI when using
|
Beta Was this translation helpful? Give feedback.
-
|
Beta Was this translation helpful? Give feedback.
-
I just ran into this and it required a different solution than I saw here. My problem was that in addition to branch protection rules at |
Beta Was this translation helpful? Give feedback.
In the case of contributing to another repo via forking
you can do this via CLI
or via github
main
You make changes to th…