GitHub: create a new repository and start using it
You want to create a new GitHub repository and you want to use it right away, i.e. you want to upload some content.
In the past, GitHub showed a detailed step-by-step help for all this, but it got removed :(
On the main page of GitHub, there is a button called “New repository”. Click on it, fill out the fields and create the repo. Now it’s on GitHub.
The next step is to clone it on your local machine:
git clone email@example.com:username/project.git
Here use the URL that starts with “firstname.lastname@example.org”! Not the one with “
https://“. Once I cloned the “
https://” and then it kept asking my username and password at each commit :(
Now you can perform your local changes. When ready, upload the changes to github:
git push origin master
More info here.
If you need to upload your SSH key, follow this guide.