MacOSX10.6へ Gitインストール/設定


mac% sudo port install git-core +svn
mac% git config --global "ijo"
mac% git config --global
mac% git config -l 

CentOS5.5(64bit)へ Gitインストール/設定

# yum install git
# yum install git-daemon --enablerepo=rpmforge
# chkconfig xinetd on
# /etc/init.d/xinetd start
# yum install gitweb
# vi /etc/gitweb.conf
$projectroot = "/var/www/git";
# vi /etc/httpd/conf.d/git.conf
  AuthType Basic
  AuthName "Authorization Realm"
  AuthUserFile /etc/httpd/conf/.htpasswd
  Require valid-user
#service http reload
# mkdir /var/www/git
# chown -R ijo:ijo /var/www/git
# git config --global "centos"
# git config --global

MacOSX リポジトリ作成/コミット

mac% mkdir ~/Site/git/test
mac% cd ~/Site/git/test
mac% git init 
mac% vi .gitignore

mac% touch readme.txt
mac% git add readme.txt
mac% git commit -m ‘first commit’ 

CentOS リポジトリ作成

# mkdir /var/www/git/test.git/
# chown -R fourier:fourier /var/www/git/test.git/
# cd /var/www/git/test.git/
# git --bare init
# vi description
CentOS5.5 64bit Git test - ijo


mac% cd ~/Site/git/test
mac% git remote add origin ssh://
mac% git push origin master

One Response to Git導入(CentOS5-MacOSX)

  1. Pingback: MacPortsのインストール手順 «

Leave a Reply

Your email address will not be published. Required fields are marked *