Home > Mobile >  What is difference between github main and master branch ? I changed default branch from main to mas
What is difference between github main and master branch ? I changed default branch from main to mas

Time:04-19

I changed default branch from main to master and deleted main and now when I am trying to push using command

git push -u origin master

I am getting error. I tried git push -f origin master and it works don't know why?

CodePudding user response:

try it :

git pull --rebase origin main
git push -u origin main

It will work and your files will be pushed into main repository.

  • Related