0

現在、にリポジトリがあります/home/git/repositories/flt。を使用してクローンできgit clone git@hostname:flt/root.gitます。 /home/gitgit ユーザーの$HOMEディレクトリです。ジトライトを使用しています。

flt リポジトリを git ホーム ディレクトリではない別のパスに移動したいと考えています。clone コマンドが変更されないように設定するにはどうすればよいですか? 必要に応じて、git のホーム ディレクトリを変更できます。ありがとう。

4

1 に答える 1

2

You can change the home of the user git, of course, or you make it simple and just link to the new location. Looking at the pathes I assume, that you are using linux ;)

ln -s /path/to/new/flt.git /home/git/repositories/flt

However, I would just use the new location every time I clone the repository. I don't see a reason (except there are build-script pointing hard-coded to the old location in the wild), why one should use the old path.

于 2011-06-29T20:57:49.847 に答える