git

提供: FreeBSD入門
移動: 案内検索
スポンサーリンク

git とは、ソースコードバージョン管理システムの1つです。

読み方

git
ぎっと

概要

インストール

FreeBSDにインストールする場合

ports コレクションからインストールする場合

cd /usr/ports/devel/git
sudo make install clean

pkgコマンドでインストールする場合

sudo pkg install git

portinstallコマンドでインストールする場合

sudo portinstall /usr/ports/devel/git
root@b0:/etc/ssh # pkg install git
Updating repository catalogue
The following 6 packages will be installed:
 
        Installing p5-Net-SMTP-SSL: 1.01_1
        Installing p5-Error: 0.17021
        Installing ca_root_nss: 3.15.3.1
        Installing cvsps: 2.1_1
        Installing curl: 7.33.0_2
        Installing git: 1.8.5.2
 
The installation will require 170 MB more space
 
4 MB to be downloaded
 
Proceed with installing packages [y/N]: y
p5-Net-SMTP-SSL-1.01_1.txz          100% 5420     5.3KB/s   5.3KB/s   00:00
p5-Error-0.17021.txz                100%   26KB  25.7KB/s  25.7KB/s   00:00
ca_root_nss-3.15.3.1.txz            100%  289KB  48.1KB/s  68.6KB/s   00:06
cvsps-2.1_1.txz                     100%   34KB  33.6KB/s   3.6KB/s   00:01
curl-7.33.0_2.txz                   100% 1220KB  58.1KB/s  40.0KB/s   00:21
git-1.8.5.2.txz                     100% 2751KB  86.0KB/s  80.8KB/s   00:32
Checking integrity... done
[1/6] Installing p5-Net-SMTP-SSL-1.01_1... done
[2/6] Installing p5-Error-0.17021... done
[3/6] Installing ca_root_nss-3.15.3.1... done
[4/6] Installing cvsps-2.1_1... done
[5/6] Installing curl-7.33.0_2... done
[6/6] Installing git-1.8.5.2...===> Creating users and/or groups.
Creating group 'git_daemon' with gid '964'.
Creating user 'git_daemon' with uid '964'.
Updating /etc/shells
 done
------------------------------------------------------------------------
*************************** GITWEB *************************************
If you installed the GITWEB option please follow these instructions:
 
In the directory /usr/local/share/examples/git/gitweb you can find all files to
make gitweb work as a public repository on the web.
 
All you have to do to make gitweb work is:
1) Copy the files /usr/local/share/examples/git/gitweb/* to a directory on
   your web server (e.g. Apache2) in which you are able to execute
   CGI-scripts.
2) In gitweb.cgi, adjust the variable $projectroot to point to
   your git repository (that is where you have your *.git project
   directories).
*************************** GITWEB *************************************
 
*************************** CONTRIB ************************************
If you installed the CONTRIB option please note that the scripts are
installed in /usr/local/share/git-core/contrib. Some of them require
other ports to be installed (perl, python, etc), which you may need to
install manually.
*************************** CONTRIB ************************************
------------------------------------------------------------------------

設定

 

使い方

git push
git pull

関連項目




スポンサーリンク