Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
サーバーにgit1.5.4.3(2008年2月からのバージョン)があります。どうやら、当時は選択肢がありませんでし--bareた。
--bare
では、どうすればベアリポジトリを作成できますか?
ローカルで作成してサーバーにscpすることはオプションですが、非常に手間がかかります。または、ローカルgitコマンドを使用して新しいリモートリポジトリを作成することは可能ですか?
このような初期バージョンのgitを使用しても、次の方法でベアリポジトリを作成できます。
git --bare init
...通常ではなくgit init --bare。
git init --bare
興味深いことに、私はこれを、次の--bareオプションを導入したコミットのメッセージから見つけましたgit init。
git init
そのコミットはgitバージョンv1.5.6以降に含まれています。