git init
git add mycode.my
git commit -m "First commit"
git remote add reponame git@github.com:username/reponame.git
If it is the first repository you set up with that username, generate a SSH key:
ssh-keygen -t rsa -C "your_email@example.com"
ssh-add ~/.ssh/id_rsa
Copy the content of ~/.ssh/id_rsa.pub and paste it into Account Settings > SSH Keys > Add SSH Key.