Git-git
下载
- 下载
- Linux下载
- 编译源码下载
- 淘宝镜像
Linux安装
-
第一种
1. yum remove git 2. yum install curl-devel expat-devel gettext-devel openssl-devel zlib-devel asciidoc xmlto docbook2X perl-ExtUtils-MakeMaker 3. 解压,进入git目录 4. make configure 5. yum install autoconf 6. ./configure --prefix=/usr 7. make all doc info 8. make install install-doc install-html install-info -
第二种
1~3和上面一样 4. make prefix=/usr/local/git all 5. make prefix=/usr/local/git install 6. vim /etc/profile => PATH=$PATH:/usr/local/git/bin => export PATH
不常用命令
- git hash-object -w ...
- git cat-file -p ...
- git commit --amend --reset-author