CentOSへGitをインストールします。
1 2 3 4 5 6
- | !
# yum installできない場合はリポジトリを追加 # 追加のためにwgetを先にインストール yum install wget wget http://download.fedora.redhat.com/pub/epel/5/i386/epel-release-5-3.noarch.rpm rpm -Uvh epel-release-5-3.noarch.rpm yum install git-core
1 2 3 4 5 6 7 8
- ! - ! - ! - !
# 名前を設定 git config --global user.name "paburica@hogeServer" # アドレス設定 git config --global user.email "[email protected]" # 色設定 git config --global color.ui auto # ページャ設定 git config --global core.pager "lv -c"
# リモートリポジトリ Host hub # ログインユーザー User git # ホスト名(名前解決出来ない場合は、ここにアドレスを指定します) Hostname 192.200.54.2 # 秘密鍵のパス IdentityFile [秘密鍵のパス]
1 2
- !
# 以降、以下のようなアドレスでアクセス出来るようになります git clone ssh://hub/~git/~