issues
search
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,
developerasun
commented
2 years ago
solution : follow below steps
check branch name : git branch
change master to main : git branch -m master main
set a new track location : git branch -u origin/main
push it : git push origin main
reference
https://www.git-tower.com/learn/git/faq/git-rename-master-to-main
issue : git push origin main not working in a newly created branch with push error
in terminal,