1.3. アプリケーションのバージョンを管理するための設定
複数の開発者が関わるプロジェクトではすべて、効果的なバージョン管理が必須になります。Red Hat Enterprise Linux には、Git という名前の分散型バージョン管理システムが同梱されています。
手順
git パッケージをインストールします。
Copy to Clipboard Copied! Toggle word wrap Toggle overflow dnf install git
# dnf install git
任意で、Git コミットに関連付ける名前と、メールアドレスを設定します。
Copy to Clipboard Copied! Toggle word wrap Toggle overflow git config --global user.name "Full Name" git config --global user.email "email@example.com"
$ git config --global user.name "Full Name" $ git config --global user.email "email@example.com"
Full Name と email@example.com を、お客様の名前とメールアドレスに置き換えます。
任意で、Git で開始するデフォルトのテキストエディターを変更するには、
core.editor
設定オプションの値を設定します。Copy to Clipboard Copied! Toggle word wrap Toggle overflow git config --global core.editor command
$ git config --global core.editor command
command を、テキストエディターを起動するのに使用するコマンドに置き換えます。
関連情報
Git およびチュートリアルの Linux の man ページ:
Copy to Clipboard Copied! Toggle word wrap Toggle overflow man git man gittutorial man gittutorial-2
$ man git $ man gittutorial $ man gittutorial-2
多くの Git コマンドには、独自の man ページがあります。例は、git-commit(1) を参照してください。