想问下github是怎么用的有教程吗
就是和SF很像但是不知道咋,站长有教程吗 这个网站搞得我很蛋疼安装Git on Windows
无视Windows……
3. 配置
3.1 检查是否已经存在KEY
1 $ cd ~/.ssh
2 $ ls
3 config id_rsa id_rsa.pub known_hosts
4 $ mkdir key_backup
5 $ cp id_rsa* key_backup
6 $ rm id_rsa*
如果已经存在KEY(id_rsa, id_rsa.pub),把他们拷贝到key_backup目录备份, 因为SSH默认会使用”.ssh”目录下的KEY
3.2 生成SSH KEY
view source print?
1 $ ssh-keygen -t rsa -C "your_mail_addr@gmail.com"
2 Enter file in which to save the key (/home/sylvester/.ssh/id_rsa):
3 Enter passphrase (empty for no passphrase):
4 Enter same passphrase again:
5 Your identification has been saved in /home/sylvester/.ssh/id_rsa.
6 Your public key has been saved in /home/sylvester/.ssh/id_rsa.pub.
7 The key fingerprint is:
8 e8:ae:60:8f:38:c2:98:1d:6d:84:60:8c:9e:dd:47:81 [email]your_mail_addr@gmail.com[/email]
在这里会要求输入key 目录和 密码,可根据自己的情况输入
3.3 将Public Key 添加到GitHub
打开你的GitHub->SSH Public Key->点击“Add another public key”, 将你的public key(id_rsa.pub)的内容拷贝到GitHub中
3.4 测试
view source print?
1 $ ssh [email]git@github.com[/email]
2 ERROR: Hi sylvester! You've successfully authenticated, but GitHub does not provide
3 shell access
4 Connection to github.com closed.
5 成功!!
4. 下载你的项目
view source print?
1 $git clone git://github.com/sylvester/meelisp.git
5. 提交变更
5.1 配置
view source print?
1 git config --global user.name "Your Name"
2 git config --global user.email [email]your_email@gmail.com[/email]
5.2 创建Repository
view source print?
1 mkdir meelisp
2 cd meelisp
3 git init
4 touch README
5 git add README
6 git commit -m 'first commit'
7 git remote add origin [email]git@github.com[/email]:your_name/meelisp.git
8 git push origin master
5.3 提交已经存在的Repository
view source print?
1 cd existing_git_repo
2 git remote add origin [email]git@github.com[/email]:your_name/meelisp.git
3 git push origin master [b]回复 [url=http://www.idc866.com/redirect.php?goto=findpost&pid=111024&ptid=15000]2#[/url] [i]771963235[/i] [/b]
楼上 折腾成功了?? 贴个样站来看看。
看似那么麻烦,所以还未偿试折腾! [b]回复 [url=http://idc866.com/redirect.php?goto=findpost&pid=111026&ptid=15000]3#[/url] [i]idc886[/i] [/b]
还真的没折腾成功:L [b]回复 [url=http://www.idc866.com/redirect.php?goto=findpost&pid=111024&ptid=15000]2#[/url] [i]771963235[/i] [/b]
我看着都蛋疼。 。 。你怎么搞的成功了吗 呵呵…唉,好东西就是难用啊!希望快出教程… 这个站点好像只支持静态的
和他们开发的一款博客程序(动态变静态) github是提供代码版本管理的, 估计拿来做站的用处不大 帮顶,希望你们能成功。
页:
[1]