In this repository, I write the command line instruction for create new Github repository.
HTTPS: https://github.com/matteoghera/my-empty-repo.git
echo "# my-empty-repo" >> README.md
git init
git add README.md
git commit -m "first commit"
git branch -M master
git remote add origin https://github.com/matteoghera/my-empty-repo.git
# ---> git remote add origin https://[TOKEN]@github.com/matteoghera/my-empty-repo.git <--- new version!!!
git push -u origin master
git remote add origin https://github.com/matteoghera/my-empty-repo.git
git branch -M master
git push -u origin master
You can initialize this repository with code from a Subversion, Mercurial, or TFS project.
SSH: [email protected]:matteoghera/my-empty-repo.git
echo "# my-empty-repo" >> README.md
git init
git add README.md
git commit -m "first commit"
git branch -M master
git remote add origin git@github.com:matteoghera/my-empty-repo.git
git push -u origin master
git remote add origin git@github.com:matteoghera/my-empty-repo.git
git branch -M master
git push -u origin master
You can initialize this repository with code from a Subversion, Mercurial, or TFS project.