先在该网站创建一个用户,然后Create A Repository,用户名lerd,仓库名叫vqb,页面就进入到这里。
/lerd/vqb
===
ldm@ldm-TOP2:~$ cd ~/.ssh
bash: cd: /home/ldm/.ssh: 没有那个文件或目录
ldm@ldm-TOP2:~$ ssh-keygen -t rsa -C "lerd_tb@163.com"
Generating public/private rsa key pair.
Enter file in which to save the key (/home/ldm/.ssh/id_rsa):
Created directory '/home/ldm/.ssh'.
Enter passphrase (empty for no passphrase):
Enter same passphrase again:
Your identification has been saved in /home/ldm/.ssh/id_rsa.
Your public key has been saved in /home/ldm/.ssh/id_rsa.pub.
The key fingerprint is:
49:be:40:88:50:8b:80:35:f2:d1:f1:cc:46:b1:0d:8e lerd_tb@163.com
The key's randomart image is:
--[ RSA 2048]----
|=o=... . |
|o= =.O |
|. E O o |
| o o . |
| . S |
| . . |
| . |
| |
| |
-----------------
ldm@ldm-TOP2:~$
===
ssh
git@github.com:lerd/vqb.git
http
在按照Set Up Git中的说明设好ssh后,在本机完成下列操作
=============
cd target/config/versatilepb
make clean
cd ..
git init
git add versatilepb
git commit -m "create a bsp dir"
git remote add origin git@github.com:lerd/qvb.git
git remote --help
git remote rm origin
git remote add origin git@github.com:lerd/vqb.git
git push origin master
=============
现在,可以用git clone /lerd/vqb.git 来下载源代码了。
阅读(11617) | 评论(0) | 转发(0) |