git push error: src refspec main does not match any on linux
问题 whenever I'm trying to upload my files using git push -u origin main I'm getting error which is as follows error: src refspec main does not match any error: failed to push some refs to 'github.com:xxxxxx/xxx-project.git' but if I do git push -u origin master it is working perfectly and uploading my files to a separate branch named master . upon checking .git/refs/heads in my project i saw that there is only one file named master so i performed git remote update which added .git/refs/remotes