创建新的repository 在github网站上
1. 点击网页右上的+,click New repository
2. 选取你希望repository创建的account
3. Type repository的名字和可选的description
4. 选取pubic or private 属性
5. 对于那些可选项,如果你是import an existing repository to github,那么不要选任何中的一个,否则会有冲突。你可以选择add 那些files 在command line。
6. Finish
Generating an SSH key
在命令行输入 ssh-keygen –C “yourhithbemail" –trsa
保存在默认路径下,无密码。
将默认路径下.ssh目录下的id_rsa.pub中的内容复制到github网站上。Account->setting->SSH and GPC keys->SSH keys
然后再ubuntu上看是否测通。
yanyang@ubuntu:~/.ssh$ ssh -Tgit@github.com
Hi hp! You've successfullyauthenticated, but GitHub does not provide shell access.
下面是我想将我Ubuntu本地的代码上传到github服务器上,因为我之前已经创建了一个reposito