2012-01-23 19 views
0

私は当初私のubuntuサーバーにsvnリポジトリを持っていました。私はgit svnを使ってgitリポジトリに変換しました。 〜/ csmart/git/csmartの下に.gitディレクトリがあります。ubuntuサーバー上のgit共有リポジトリ全員にssh経由で

このリモートリポジトリをベースとしてクローニングを開始し、作業を開始したいと思います。だから効果的に彼らはすべてsvnからgitに切り替えるはずです。

ここで問題は、どのようにリモートリポジトリを全員と共有するのかです。私が試した

もの:私はクローンを作成しようとした私のローカルコンピュータ上で

git remote add csmart ssh://csmartserver/~/csmart/git/csmart/csmart.git 

:ディレクトリ〜/ csmart/gitの/ csmartオン

1. 私は、次のコマンドを使用して、リモートを追加しましたURLをリポジトリ:

git clone ssh://csmartserver/~/csmart/git/csmart/csmart.git 

私は〜/ csmart/gitの/ csmart/csmart.git gitリポジトリ

ないというエラーを取得します

2. サーバーの別のディレクトリに裸のリポジトリを作成しようとしました。私はその後、私の考えは、裸のリポジトリを作成して、それを使用してgitのレポを共有し、破棄するようにした

[email protected]:/data/csmart/git-repositories/csmart$ git --bare init 
[email protected]:~/csmart/git/csmart$ git remote add origin ssh://localhost/data/csmart/git-repositories/csmart 
[email protected]:~/csmart/git/csmart$ git push origin master 
[email protected]'s password: 
error: src refspec master does not match any. 
error: failed to push some refs to 'ssh://localhost/data/csmart/git-repositories/csmart' 

...そこにsethu/csmart/gitの/ csmart/csmart.git/homeの下レポをプッシュしようとしました〜/ csmart/git/csmartリポジトリ。しかし、上記のようにエラーが発生していました。それはマスターが一致しないと言います。それはまあまあです。裸のリポジトリを作成すると、エイリアスマスタを持つブランチが作成されますか?

私はsvnを使って作成したgit repoをどうやって共有しますか?

答えて

0

まず、たくさんのユーザーを簡単に管理できるように、ギトライトを試してみてください。

Ubuntuでssh接続が有効になっていることを確認してください。デフォルトのインストールでは不可能です。次に、適切なファイルとフォルダのアクセス許可を持っていることを確認します。

関連する問題