github使用简略笔记

没写过代码的人用github真是遭罪。各种概念不懂。最后总算用了起来。。

开始

$git config --global user.name "xxx"
$git config --global user.email "XXX@163.com"
$git config --global http.proxy http://192.168.1.50:8010
$git clone https://github.com/xxx/xxxChat.git
$git checkout addFeature


然后开始各种写。然后:

$git add --all
$git commit //把用到的行前面的注释取消
$git remote set-url origin https://xxx@github.com/xxx/xxxChat.git
$git push  //此处会要求输入密码

这样就把写好的代码发布到repository了。

 

posted @ 2013-01-14 17:30  酱油猫  阅读(221)  评论(0编辑  收藏  举报