echo "# laravel-echo" >> README.md
git init
git add README.md
git commit -m "first commit"
git remote add origin https://github.com/lilugirl/laravel-echo.git
git push -u origin master
git remote add origin https://github.com/lilugirl/laravel-echo.git
git push -u origin master
You can initialize this repository with code from a Subversion, Mercurial, or TFS project.
本地创建项目文件夹
进入文件夹
创建本地仓库
$ git init
$ git add *
$ git commit -m “Project init”
查看提交
$ git show HEAD
创建项目文件 index.html
发布到Github
首先到Github上创建一个新项目 比如myproject 我github的用户名是lilugirl
$ git remote add origin git@github.com:lilugirl/myproject.git
$ git push origin master -u
推送到 gh-pages上就可以访问页面 http://lilugirl.github.io/myproject
$ git push origin master:gh-pages