My setup is one repository per document (article/thesis/book/presentation). Advantages, with respect to the "one repository to rule them all":
-
you can share and sync the individual repositories with the colleagues you are working with. If some of them prefer another version control software, no problem, you use whatever they like.
-
you can check out previous versions and work in "detached head" mode without screwing up the rest of your home directory.
-
you can use
git archive
-
you can use tags in a meaningful way
Disadvantages:
- you need a way to handle files that are shared among projects (if there is any). Git subprojects are a mess.
I can't come up with any more disadvantages --- to me, one repo per project is the way git
is meant to be used. What arguments do the supporters of the "unified repository" have?
manpreet
Best Answer
2 years ago
I am looking up at setting up version control for my latex documents. I was wondering people's typical setup for this. Do they set it up in there top folder or individual projects. I will be using GIT. Specifically can you start a new project that is in a seperate repo (but the same folder as the original GIT) and then merge it into the master branch easily. This would also be useful.