0

Pretty beginner question, but I didn't find the answer, I did my account into GitHub account, there are two branches: Main and Master, I tried to do push first to 'main' so later to 'master', after commit, the error:

Both branches exist:

enter image description here

The error:

enter image description here

JamesB
  • 569
  • 1
  • 9
  • 31
  • Try updating your default branch to `master`: https://docs.github.com/en/repositories/configuring-branches-and-merges-in-your-repository/managing-branches-in-your-repository/changing-the-default-branch – bicarlsen Apr 23 '22 at 00:53
  • @bicarlsen Didn't work. – JamesB Apr 23 '22 at 07:31
  • Dang. Perhaps One of these links will help: [refspec does not match any](https://stackoverflow.com/questions/4181861/message-src-refspec-master-does-not-match-any-when-pushing-commits-in-git), [track a remote branch](https://stackoverflow.com/questions/520650/make-an-existing-git-branch-track-a-remote-branch). – bicarlsen Apr 23 '22 at 09:04

0 Answers0