1

私は2つの場所で使用するプロジェクトを持っています(私はgitサーバーを使用しません)。

2 番目にプロジェクトをコピーすると、すべてのファイルをチェックインする必要があります (ただし、変更されていません)。たとえば、git に表示されます。


@@ -1,8 +1,8 @@
-#Sat Mar 06 19:39:27 CET 2010
-eclipse.preferences.version=1
-org.eclipse.jdt.core.compiler.codegen.inlineJsrBytecode=enabled
-org.eclipse.jdt.core.compiler.codegen.targetPlatform=1.6
-org.eclipse.jdt.core.compiler.compliance=1.6
-org.eclipse.jdt.core.compiler.problem.assertIdentifier=error
-org.eclipse.jdt.core.compiler.problem.enumIdentifier=error
-org.eclipse.jdt.core.compiler.source=1.6
+#Sat Mar 06 19:39:27 CET 2010

+eclipse.preferences.version=1

+org.eclipse.jdt.core.compiler.codegen.inlineJsrBytecode=enabled

+org.eclipse.jdt.core.compiler.codegen.targetPlatform=1.6

+org.eclipse.jdt.core.compiler.compliance=1.6

+org.eclipse.jdt.core.compiler.problem.assertIdentifier=error

+org.eclipse.jdt.core.compiler.problem.enumIdentifier=error

+org.eclipse.jdt.core.compiler.source=1.6

私は両方の場所でコマンド git config --global core.autocrlf false を実行しましたが、この問題には役立ちません

4

3 に答える 3

5

あなたの質問には答えていませんが、gitリポジトリをコピーしないでください。USB memstickなどを介してコピーすると仮定すると、memstickに3番目のレポを作成し(できれば「ベア」モードで)、そのレポを介して2台のコンピューター間で変更を同期します。

于 2010-04-26T11:49:47.103 に答える
4

を試してgit bundle、問題が解決するかどうかを確認できます。さらに、 1つの
ファイル を移動するだけで済みます。

于 2010-04-26T13:28:43.207 に答える
1

私は通常git clone、コンピュータ間を移動します-gitへのネットワークアクセスがある場合(つまり、ssh経由)。

パブリックリポジトリ(githubとその仲間を参照)またはプライベートリポジトリ( git "server"を管理するためのgitosisが本当に好きです)の3番目のリポジトリを使用することもできます。これにより、バックアップを作成できるというメリットも得られます。

于 2010-04-26T13:52:13.897 に答える