0

I keep some Git repositories in Dropbox, due to some Dropbox synchronization glitches between different computers (computerX, computerB in the following), I think, there are files

./.git/ORIG_HEAD (computerX's conflicted copy 2015-05-15)
./.git/index (computerX's conflicted copy 2015-05-19)
./.git/COMMIT_EDITMSG (computerX's conflicted copy 2015-05-15)
./.git/FETCH_HEAD (computerB's conflicted copy 2015-05-18)
./.git/index (computerX's conflicted copy 2015-05-15)
./.git/index (computerB's conflicted copy 2015-05-18)
./.git/refs/heads/master (computerX's conflicted copy 2015-05-15)
./.git/refs/remotes/origin/master (computerX's conflicted copy 2015-05-15)
./.git/logs/HEAD (computerB's conflicted copy 2015-05-18)
./.git/logs/HEAD (computerX's conflicted copy 2015-05-15)
./.git/logs/refs/heads/master (computerX's conflicted copy 2015-05-15)
./.git/logs/refs/heads/master (computerB's conflicted copy 2015-05-18)
./.git/logs/refs/remotes/origin/master (computerX's conflicted copy 2015-05-15)
./.git/logs/refs/remotes/origin/master (computerB's conflicted copy 2015-05-18)

I'm kinda concerned to just simply delete all of them. Anybody has suggestion on how to sanity check before getting rid of such?

Meng Lu
  • 11,970
  • 11
  • 36
  • 44
  • Well actually I wouldn't delete any of the files. Because these files are kind of mandatory for your git-repository. What you could do is the following: If you haven't any local commits pushed yet, so your repo is clean - you could just delete the whole repo and clone it again. – ckruczek Jun 22 '15 at 05:09
  • 1
    Only the versions of the files without the `(xxx's conflicted copy yyy)` in the file names are mandatory. – Meng Lu Jun 22 '15 at 05:11
  • Yep and you posted only these files or am i getting something wrong? /index,/ORIG_HEAD,/refs/* are all mandatory files for git. – ckruczek Jun 22 '15 at 05:13
  • Besides the files I posted, there are other files whose file names do not have `(xxx's conflicted copy yyy)`. – Meng Lu Jun 22 '15 at 06:03
  • Ok, but I sill stick to my first approach. – ckruczek Jun 22 '15 at 06:04
  • Why not use bundles with Dropbox? See http://stackoverflow.com/a/9030201/6309 – VonC Jun 22 '15 at 08:05

0 Answers0