I'm not a git expert, sometimes I need a reminder when setting up a new repository of the commands necessary.
touch README.md
git init
git add README.md
git commit -m "Initial commit"
git remote add origin https://<url to repository>.git
git push -u origin master
git remote add origin https://<url to repository>.git
git push -u origin master