1. create a new repository on the command line
echo "# yii11-api-scaffolding" >> README.md
git init
git add README.md
git commit -m "first commit"
git remote add origingit@github.com:xiaohei2015/yii11-api-scaffolding.git
git push -u origin master
2. push an existing repository from the command line
git remote add origingit@github.com:xiaohei2015/yii11-api-scaffolding.git
git push -u origin master