git 初始化操作

1.生成ssh key
2.登录github 添加生成的ssh key
3.git clone 时,使用ssh的git URL ,以后可不用输入密码。
具体步骤链接:http://blog.csdn.net/chenguolinblog/article/details/19929509

官方步骤说明:

We recommend every repository include a README, LICENSE, and .gitignore.
…or create a new repository on the command line
echo # ndk >> README.md
git init
git add README.md
git commit -m "first commit"
git remote add origin git@github.com:angelwhu/ndk.git
git push -u origin master

…or push an existing repository from the command line
git remote add origin git@github.com:angelwhu/ndk.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.