views:

186

answers:

3

I have a project that i use at two places(i dont use git server).

When i copy the project at second place i have to check-in all the files(but they have not changed), git shows me for example


@@ -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

i did at both places the command git config --global core.autocrlf false but it doesnt help with this problem

+6  A: 

Altough not answering your question - do not copy your git repo. Assuming you copy via USB memstick or something like that - create a third repo on the memstick (in 'bare' mode, preferrably), and sync your changes between the two computers via that repo.

Mart Oruaas
+3  A: 

You can try a git bundle and see if the problem persist.
Plus, you will only have to move one file.

VonC
+1  A: 

I usually just git clone stuff between computers - if you have network access to git (ie, via ssh).

You can also use a third repo, either a public one (see github and friends) or a private one (I really like gitosis to manage my git "server") - this way you also get the benefit of having a backup.

Luke404