github 快速部署

在github上 新建一个项目后,并且未提交任何代码,会有一个页面提示我们如何快速部署。在此备份一下那个页面

Quick setup — if you’ve done this kind of thing before

Set up in Desktop  or  https://github.com/jiashubing/crawler4j-demo.git
We recommend every repository include a README, LICENSE, and .gitignore.

…or create a new repository on the command line

echo "# crawler4j-demo" >> README.md
git init
git add README.md
git commit -m "first commit"
git remote add origin https://github.com/jiashubing/crawler4j-demo.git
git push -u origin master

…or push an existing repository from the command line

git remote add origin https://github.com/jiashubing/crawler4j-demo.git
git push -u origin master

…or import code from another repository

You can initialize this repository with code from a Subversion, Mercurial, or TFS project.

原文地址:https://www.cnblogs.com/acm-bingzi/p/github-setup.html