Skip to content

Creating a pull request encountered 'Base branch does not allow updates. 's error. #65403

Discussion options

You must be logged in to vote

In the case of contributing to another repo via forking

  • first create a new branch

creating a branch from main branch is like copying the contents of the main branch, and making changes to the copy (without affecting the main branch)

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

  • click on main branch button
  • click view all branches
  • click new branch
  • write the name of the new branch
  • make sure the source branch is main
  • click create new branch
  • click the new branch to switch to that branch




You make changes to th…

Replies: 4 comments 4 replies

Comment options

You must be logged in to vote
1 reply
@lazarljubenovic
Comment options

Comment options

You must be logged in to vote
0 replies
Answer selected by Leaovo-man2
Comment options

You must be logged in to vote
3 replies
@ninebelowzero
Comment options

@ivan-spichka
Comment options

@frederikheld
Comment options

Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Bug Something isn't working correctly
9 participants