1

I have a LaTeX manuscript which I am preparing with my group and are using a shared Dropbox folder. Technically this is version-controlled, but I would like to be able to see diffs of changes you get with a git repository.

Is it possible to create a local git repository to commit to for this reason, without creating a remote repository (since Dropbox kind of serves this purpose already)?

hatmatrix
  • 42,883
  • 45
  • 137
  • 231

1 Answers1

3

I mentioned before that using Dropbox for a git repo isn't safe.
More specifically, the .git/ folder should not be replicated in dropbox.

That means you can:

  • initiate a git repo locally,
  • move the .git folder outside the folder which will contain your files,
  • set environment variable GIT_DIR to the .git/ folder path (again moved elsewhere)
  • use git inside your document folder as usual.
  • backup that same document folder (which does not include .git) with Dropbox.
VonC
  • 1,262,500
  • 529
  • 4,410
  • 5,250