第2章 アプリケーションのバージョンを管理するための設定
複数の開発者が関わるプロジェクトではすべて、効果的な訂管理が必須になります。Red Hat Enterprise Linux は Git という分散型のバージョン管理システムが同梱され、配信されています。
-
インストール時に
開発ツール
アドオンを選択して、Git をインストールします。 または、システムのインストール後に、Red Hat Enterprise Linux のリポジトリーから git パッケージをインストールします。
yum install git
# yum install git
Copy to Clipboard Copied! Toggle word wrap Toggle overflow Red Hat がサポートする Git の最新版を取得するには、Red Hat Software Collections から rh-git227 のコンポーネントをインストールします。
yum install rh-git227
# yum install rh-git227
Copy to Clipboard Copied! Toggle word wrap Toggle overflow Git コミットに関連付けるフルネームとメールアドレスを設定します。
git config --global user.name "full name" git config --global user.email "email_address"
$ git config --global user.name "full name"git config --global user.name "full name"git config --global user.name "full name" $ git config --global user.email "email_address"git config --global user.email "email_address"git config --global user.email "email_address"
Copy to Clipboard Copied! Toggle word wrap Toggle overflow full name と email_address は、実際の名前とメールアドレスに置き換えます。
Git で開始するデフォルトのテキストエディターを変更するには、
core.editor
の設定オプションの値を設定します。git config --global core.editor command
$ git config --global core.editor commandgit config --global core.editor command
Copy to Clipboard Copied! Toggle word wrap Toggle overflow command は、選択のテキストエディターの起動に使用するコマンドに置き換えます。