2012-03-30 4 views
1

私は数ヶ月前にcvs2gitを実行し、いくつかのコード用のgitリポジトリを作成しました。私はcvsから専用リポジトリとして使いたい専用サーバにインポートしました。cvs2gitから作成したリポジトリを裸のリポジトリに変換する

今日、私は初めてリモートリポジトリからのクローン作成を試み、クローン化に成功しました。それを研究した後

remote: error: refusing to update checked out branch: refs/heads/master 
remote: error: By default, updating the current branch in a non-bare repository 
remote: error: is denied, because it will make the index and work tree inconsistent 
remote: error: with what you pushed, and will require 'git reset --hard' to match 
remote: error: the work tree to HEAD. 
remote: error: 
remote: error: You can set 'receive.denyCurrentBranch' configuration variable to 
remote: error: 'ignore' or 'warn' in the remote repository to allow pushing into 
remote: error: its current branch; however, this is not recommended unless you 
remote: error: arranged to update its work tree to match what you pushed in some 
remote: error: other way. 
remote: error: 
remote: error: To squelch this message and still keep the default behaviour, set 
remote: error: 'receive.denyCurrentBranch' configuration variable to 'refuse'. 

、私は問題はリポジトリが、私はcvs2gitで作成したということだと思う:私はリモートリポジトリにバックアップ変更をプッシュしようとしたとき、それは裸ではないようにしかし、私がエラーを取得しているためと思われます裸ではない。

どうすればこのリモートリポジトリに変更をプッシュできますか? gitの私の(限られた)理解は、すべてのクローンが互いに等しいことであり、リモートリポジトリに置かれたコピーについて特に特別なことは何もない。だから私は現在そこにあるものを削除し、新鮮な裸のリポジトリを作成し、リモートクライアントからリモートリポジトリにプッシュバックすることができますか?

答えて

1

So can I delete what is currently there, create a fresh bare repository, and push from my remote client back up to the remote repository?

はい、実際には、最も簡単な方法です。

関連する問題