I am adding all files git add . then committing git commit -m 'first commit', and then using these commands to set origin, set main branch and push:
git branch -M main
git remote add origin https://github.com/BeccaN/my-project.git
git push -u origin main
I'm not getting any response to the push, its just hanging. What can I do to debug this further and hopefully find a solution?
EDIT I tried reinitializing a new repository from my mac laptop and it worked. Original I was using Ubuntu/Linux. Would still love to hear any theories or advice on why it wasn't working before but does work with Mac?