Stash is now known as Bitbucket Server.
See the

Unknown macro: {spacejump}

of this page, or visit the Bitbucket Server documentation home page.

[セキュリティ脆弱性 CVE-2014-9390]1.8.5.6、1.9.5、 2.0.5、2.1.4 または 2.2.1 以前の Git クライアントを実行している場合(すべて にリリース)、できるだけ早く Git をアップグレードしてください。

Stash サーバーはこの脆弱性の影響を受けません。

また、このアトラシアンブログ投稿を参照してください:Git サーバーを CVE から保護する-2014-9390

このページには次の方法が記載されています:

このページの情報は、ローカルコンピューターまたは Stash サーバー上での Git のインストールまたはアップグレードが対象となります。

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

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).

例:

git --version 
git version 2.2.1

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

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

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

sudo apt-get install git

代替ダウンロードオプション:

  • Git Web サイトから最新の安定した Git リリースをダウンロードします。 
  • 別の Linux ディストリビューションを使用している場合、最新の安定した Git バージョンを入手するため、別のパッケージリポジトリを使用する必要があります。 
  • 最新バージョンの Git が必要な場合は、ソースからインストールする必要があります。

 

次に、Git のバージョンを確認 - Git の新しいバージョンが表示されます。

If you still can't see the expected 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 をインストールまたはアップグレードする

Git Web サイトから最新の安定した Git リリースをダウンロードします。 

downloaded .dmg ファイルをクリックしてから、.pkg アイコンをダブルクリックしてインストーラを実行します。これにより、既存のバージョンの上に新しいバージョンの Git がインストールされます。

あるいは:

  • OS X とバンドルされたネイティブの Git を使用します。
  • Homebrewを使用して 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.

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

Git Web サイトから最新の安定した Git リリースをダウンロードします。

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. Installing Git for Windows (msysGit) also installs a supported version of Perl.

パスで git.exe が利用可能なことを確認するには、以下のいずれかを選択します:

  • Windows コマンドプロンプトで Git を実行するか、あるいは 
  • Windows コマンドプロンプトから Git と付属の Unix ツールを実行します

Stash サーバー用 Git をインストールまたはアップグレードする場合は、Git Bash のみを使用を選択しないでください -- Stash ではこの機能は動作しません。

次に、Git のバージョンを確認 - Git の新しいバージョンが表示されます。

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

msysGit を正常にインストールしても、Stash をインストールすると「Unable to find git! (git が見つかりません)」というエラーが表示される場合は、インストールを中断して Windows サーバーを再起動してから、Stash インストールを再起動してください。

 

必要に応じて Stash を再起動する

ローカルコンピューターではなく Stash サーバー用に Git をインストールまたはアップグレードした場合、 Git のアップグレードされたバージョンを選択するためにStash を停止し、再起動する必要があります。 詳細は「Stash の起動と終了」を参照してください。