Installing and upgrading Git

This page describes how to install or upgrade Git on the Crucible server:

Git のバージョンを確認する

The versions of Git supported by Crucible are listed on Supported platforms.

You can check your current version of Git by running the git --version command in a terminal (Linux, Mac OS X) or command prompt (Windows). 

例:

git --version 
git version 1.7.7.3

サポートされるバージョンの Git がない場合は、Git をアップグレードするか、以下の方法でフレッシュインストールを実行する必要があります。

Linux で Git をインストールまたはアップグレードする

パッケージマネージャを使用して Git をインストールします。例えば、Ubuntu 13.10 の場合:

sudo apt-get install git

別の Linux ディストリビューションを使用している場合、最新の安定した Git バージョンを入手するため、別のパッケージリポジトリを使用する必要があります。

Now check the Git version – you should see the new version of Git.

If you still can't see the Git version, you may need to add the Git install location to your path. Open your ~/.profile file in a text editor and add this line, where <path/to/git> is the install location for Git:

export PATH=$PATH:<path/to/git>

You can use the which git command to find the install location for Git.

Mac OS X で Git をインストールまたはアップグレードする

This section describes how to install the latest stable Git release on your Mac. It does not describe how to update the version of Git that is bundled with Apple's Xcode.

Download the latest stable Git release from the Git website. Click on the downloaded .dmg file, then double-click the .pkg icon to run the installer. This will install the new version of Git over the existing version:

Now check the Git version – you should see the new version of Git.

If you still can't see the Git version, you may need to add the Git install location to your path. Open your ~/.profile file in a text editor and add this line, where <path/to/git> is the install location for Git:

export PATH=$PATH:<path/to/git>

You can use the which git command to find the install location for Git.

Windows で Git をインストールまたはアップグレードする

Download the Full installer for official Git for Windows. Installing Git for Windows (previously known as msysGit) also installs a supported version of Perl.

(warning) Git for Windows is the only supported distribution when running Crucible on Windows. Cygwin Git is not supported and has known issues.

Run the Git installer, ensuring that you install into the same location as any existing Git installation. You can use where git to locate existing installations.

Ensure that git.exe is available in the path:

  • Choose either Option 2, Run Git from the Windows Command Prompt, or Option 3, Run Git and included Unix tools from the Windows Command Prompt. Both these options will work with Crucible.
  • Do not select Option 1, Use Git Bash only, when installing or upgrading Git for the Crucible server – this will not work with Crucible.

Now, check the Git version – you should see the new version of Git.

Restart Crucible

You'll need to stop and restart Crucible so that it will pick up the upgraded version of Git.

Windows の場合

Control the Crucible service from the Windows administration console. Alternatively, in a command prompt, change directory to <Crucible home directory> and run:

bin\start.bat

 

On Linux and Mac OS X:
In a terminal, change directory to <Crucible home directory> and run:

 

bin\start.sh
最終更新日: 2019 年 12 月 5 日

この内容はお役に立ちましたか?

はい
いいえ
この記事についてのフィードバックを送信する
Powered by Confluence and Scroll Viewport.