再不用git就tmout了
参考手册http://www.linuxgem.org/user_files/linuxgem/Image/git-tutor.pdf
安装
wget http://www.codemonkey.org.uk/projects/git-snapshots/git/git-latest.tar.gz
tar xzvf git-latest.tar.gz
cd git-{date}
autoconf
./configure --with-curl=/usr/local
make
make instal
进如随便一个目录
git init
在当前目录就生成了 .git目录
echo "haha" >text.txt
git add .
git commit
随便写点log,不要写在注释里
git log
git log --stat --summary
比如下载nginx的源码
mkdir ngx_openresty
git clone https://github.com/agentzh/ngx_openresty ngx_openresty/
-------------
随便写点代码到一个目录
cd $work
git init
生成.git目录,tree查看对比
git add .
把当前目录的文件上传到上面
git commit -m "我的提交的注释"
会出现改变用户名和email的提示
git config --global user.name "frenchleaf"
git config --global user.email
[email protected]
git commit --amend --reset-author
------------------------------------------------------------------
20121126
https://help.github.com/articles/fork-a-repo
先在网页上点fork
https://github.com/killinux/nginx_http_push_module
得到
git clone https://github.com/killinux/nginx_http_push_module
cd nginx_http_push_module
590 git remote add haoningtest https://github.com/killinux/nginx_http_push_module
591 git fetch haoningtest
592 ls
593 git commit -a
594 git push haoningtest master
595 git fetch haoningtest
596 git merge haoningtest/master
git安装参考http://blog.csdn.net/wegatron/article/details/7990549
rpm -Uvh http://repo.webtatic.com/yum/centos/5/latest.rpm
yum install --enablerepo=webtatic git-all