CentOS5.2にgitインストール
gitというソース管理システムで管理されているオープンソースリポジトリを割と見かけるので、CentOS機にインストール。
以下、インストール - Git入門 - アットウィキを参考に。
[root@cake ~]# wget http://kernel.org/pub/software/scm/git/git-1.6.5.5.tar.gz
[root@cake ~]# zcat git-1.6.5.5.tar.gz | tar xf git-1.6.5.5.tar.gz
[root@cake ~]# cd git-1.6.5.5
[root@cake git-1.6.5.5]# ./configure
[root@cake git-1.6.5.5]# make prefix=/usr
途中で以下のメッセージ。思いのほか厳密。「あいまい」にちょっと笑いました
GITGUI_VERSION = 0.12.0.23.ga91be
* new locations or Tcl/Tk interpreter
GEN git-gui
INDEX lib/
MSGFMT po/de.msg 514 個の翻訳メッセージ.
MSGFMT po/fr.msg 513 個の翻訳メッセージ.
MSGFMT po/hu.msg 514 個の翻訳メッセージ.
MSGFMT po/it.msg 513 個の翻訳メッセージ, 1 個の未訳のメッセージ.
MSGFMT po/ja.msg 514 個の翻訳メッセージ.
MSGFMT po/nb.msg 474 個の翻訳メッセージ, 39 個の未訳のメッセージ.
MSGFMT po/ru.msg 512 個の翻訳メッセージ, 2 個の未訳のメッセージ.
MSGFMT po/sv.msg 514 個の翻訳メッセージ.
MSGFMT po/zh_cn.msg 366 個の翻訳メッセージ, 7 個の翻訳があいまいです, 17 個の未訳のメッセージ.
SUBDIR gitk-git
GEN gitk-wish
[root@cake git-1.6.5.5]# make prefix=/usr install
で終了。
まずhelpコマンドで概要を見てみることに。
コマンドのかなりの部分はsvnでもお馴染み。
とっつきやすそうですが、clone.pull/pushなど謎のコマンドもあるので気になるところ。。
[root@cake git-1.6.5.5]# git --help usage: git [--version] [--exec-path[=GIT_EXEC_PATH]] [--html-path] [-p|--paginate|--no-pager] [--bare] [--git-dir=GIT_DIR] [--work-tree=GIT_WORK_TREE] [--help] COMMAND [ARGS] The most commonly used git commands are: add Add file contents to the index bisect Find by binary search the change that introduced a bug branch List, create, or delete branches checkout Checkout a branch or paths to the working tree clone Clone a repository into a new directory commit Record changes to the repository diff Show changes between commits, commit and working tree, etc fetch Download objects and refs from another repository grep Print lines matching a pattern init Create an empty git repository or reinitialize an existing one log Show commit logs merge Join two or more development histories together mv Move or rename a file, a directory, or a symlink pull Fetch from and merge with another repository or a local branch push Update remote refs along with associated objects rebase Forward-port local commits to the updated upstream head reset Reset current HEAD to the specified state rm Remove files from the working tree and from the index show Show various types of objects status Show the working tree status tag Create, list, delete or verify a tag object signed with GPG See 'git help COMMAND' for more information on a specific command.