developerasun / myCodeBox-web

Open source code box for web developers.
Apache License 2.0
5 stars 0 forks source link

Git : failed to push some refs to remote repo #183

Open developerasun opened 2 years ago

developerasun commented 2 years ago

issue : git push origin main not working in a newly created branch with push error

in terminal,

failed-to-push

developerasun commented 2 years ago

solution : follow below steps

  1. check branch name : git branch
  2. change master to main : git branch -m master main
  3. set a new track location : git branch -u origin/main
  4. push it : git push origin main

reference