1

I have a Git repository that i'm working on and i'd like to have the ability to take it on the go and work on different computers. I've downloaded it to my external drive, but when i plug it in Computer 2 - Git detects all files as Changed. The files' changes i worked on from Computer 1 are read correctly as Modified/Deleted/Renamed whatever, Git history is also intact, but all other files are also detected as modified.

Is there a way to sync tracked / modified files properly between computers?

  • Computer 1 - Windows 10 - NTFS
  • Computer 2 - MacOS
  • External Hard Drive - NTFS
Radoslav Trenev
  • 353
  • 1
  • 6
  • 17

1 Answers1

1

Check first your git config core.autocrlf: set it to false, then renormalize the index

Try first the update-index --refresh option (or even --really-refresh):

git update-index --refresh
git status

If not:

git add --renormalize .
git status

Check then the files added are only the ones you are working on.

Check also for permission changes: using git config core.filemode false would help then.

VonC
  • 1,262,500
  • 529
  • 4,410
  • 5,250