[Other doc versions]
[Doc downloads (PDF, HTML, XML)]
このページには次の方法が記載されています:
このページの情報は、ローカルコンピューターまたは Stash サーバー上での Git のインストールまたはアップグレードが対象となります。
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). The Stash server requires one of these versions of Git: 1.7.6+, 1.8.0 – 1.8.4.2, 1.8.4.4+, 1.9.0+, 2.0.0+.
例:
git --version git version 1.7.7.3
See Supported platforms for more details about supported versions of Git.
サポートされるバージョンの Git がない場合は、Git をアップグレードするか、以下の方法でフレッシュインストールを実行する必要があります。
パッケージマネージャを使用して Git をインストールします。例えば、Ubuntu 13.10 の場合:
sudo apt-get install git
別の Linux ディストリビューションを使用している場合、最新の安定した Git バージョンを入手するため、別のパッケージリポジトリを使用する必要があります。
次に、Git のバージョンを確認 - 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.
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:
次に、Git のバージョンを確認 - 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.
Download the Full installer for official Git for Windows. Installing Git for Windows (msysGit) also installs a supported version of Perl.
msysGit is the only supported distribution when running Stash 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:
次に、Git のバージョンを確認 - Git の新しいバージョンが表示されます。
ローカルコンピューターではなく Stash サーバー用に Git をインストールまたはアップグレードした場合、 Git のアップグレードされたバージョンを選択するためにStash を停止し、再起動する必要があります。 詳細は「Stash の起動と終了」を参照してください。