To be or not to be.That is a question!

---源于莎士比亚的《哈姆雷特》

导航

git ubuntu

1 git安装:https://help.github.com/articles/set-up-git

2 git配置:

git config --global user.name "xxx"
git config --global user.email "xxx"

3 Generating SSH keys 生成ssh密钥 
希望这个时候你已经有了一个github的帐号,因为key是要绑定的,没有就去申请一个吧 
密钥应该是在根目录的.ssh下

$ cd ~/.ssh
$ ssh-keygen -t rsa -C "xxx@xxx.com"
$ ls
config id_rsa id_rsa.pub known_hosts

4 双向操作

复制服务器上的代码到本地

$ git clone git://github.com/King-fly/demo.git

5 编辑修改上传


$ git add index.html

$ git commit -m "first commit"

$ git push https://github.com/King-fly/demo.git

 

posted on 2013-05-06 17:08  Ijavascript  阅读(154)  评论(0编辑  收藏  举报