git(ギット)とは? †
- バージョン管理システム
- 公式サイト: http://git-scm.com/
- 必要となる知識: Linux, vim
- 環境: Linuxローカル環境(CentOS 5.11 - 32bit)
gitインストール †
# yum -y update
# yum -y install git
Loaded plugins: fastestmirror
Loading mirror speeds from cached hostfile
* base: ftp.iij.ad.jp
* extras: ftp.iij.ad.jp
* updates: ftp.iij.ad.jp
Setting up Install Process
No package git available.
Nothing to do
- yumインストール不可のためEPELリポジトリをインストール
# wget http://ftp-srv2.kddilabs.jp/Linux/distributions/fedora/epel/5/i386/epel-release-5-4.noarch.rpm
# rpm -ivh epel-release-5-4.noarch.rpm
# vi /etc/yum.repos.d/epel.repo
[epel]
...
enabled=1
priority=1
...
# yum -y install git
# git --version
git version 1.8.2.1
バージョン管理の流れ †
- 作業ディレクトリ
- ステージングエリア(インデックス)
- リポジトリ(ローカル、リモート)
gitの設定 †