**gitをインストール [#pc21a88c]
coreserver に git をインストールした。 --- 2012-01-16 (月) 23:37:50
以下が手順、コンパイルに15分くらいかかった。
1.プログラムをインストールするディレクトリを作成
> mkdir usr
> mkdir usr/git
2.gitをダウンロード
> cd tmp
> wget http://git-core.googlecode.com/files/git-1.7.8.3.tar.gz
3.解凍してコンパイル&インストール
> tar zxvf git-1.7.8.3.tar.gz
> cd git-1.7.8.3/
> ./configure --prefix=$HOME/usr/git
> make || make install
4.インストールしたディレクトリにパスを通す
> cd ~
> vi .bashrc
> export PATH=$PATH:/virtual/hogehoge/usr/git/bin
> source .bashrc
**git の環境を作る [#hdf3f587]
例.public_html/hogehoge をというディレクトリに作る場合
$ cd public_html/hogehoge
$ git init
> cd public_html/hogehoge
> git init
public_html/hogehoge/.git というディレクトリが作られる。
**変更を記録するときは [#k8eedda8]
$ cd public_html/hogehoge
$ git add -A
$ git commit -m "hogehoge"
> cd public_html/hogehoge
> git add -A
> git commit -m "hogehoge"
[[レンタルサーバ]]