导航栏: 首页 评论列表

git常用操作

默认分类 2013-05-15 13:46:50

Git 建立 Local Repository

$ mkdir project; 
$ cd project
$ git init
$ echo "hello" > hello.txt
$ git add .
$ git commit -m 'initial'

Git clone 資料, 資料修改後上傳

$ git clone git://github.com/haiyang5210/bui.git
$ cd project
$ touch new_file.txt
$ git add .
$ git diff -a 查看所有改动
$ git commit -m 'add new_file.txt'
$ git push git@github.com:haiyang5210/bui.git
$ git pull # 拉看看有沒有更新

http://blog.longwin.com.tw/2009/05/git-learn-test-command-2009/
http://blog.longwin.com.tw/2009/05/git-learn-initial-command-2009/

http://blog.enjoyrails.com/2008/12/31/git%E4%B8%80%E5%88%86%E9%92%9F%E6%95%99%E7%A8%8B/


>> 留言评论