Dropbox paper latex1/21/2024 ![]() ![]() (The person who created the shared repository, as described in the previous section, already has a local repository, namely ~/Desktop/NewPaper, and can skip this section.) This section states how to create a local repository. The workflow is described in the next section. Creating a Local RepositoryĮach person will work in their own local repository. The directory NewPaper.git on Drop Box or Google Drive should now be shared with your collaborators so that it shows up on their computers. Then:įinally, these changes need to be ‘pushed’ to the shared repository: gitignore file with the following contents:Ĭreate skeleton files for the project (e.g. We are about to populate it before sharing with our collaborators.Ĭreate a. Move to where you would like to have your local copy of the paper (not on Dropbox!) then clone the repository and change directory into it:ĭo not worry about the warning that we have cloned an empty repository. (Only the person creating the shared repository need read this section.) Create a new directory in Drop Box or Google Drive, and change directory into it: Note that it is “excludesfile” and not “excludefiles”! You will not receive an error if you type the wrong name because all git config –global does is insert entries into the file ~/.gitconfig (this file can be edited by hand if you prefer). Git config -global core.excludesfile ~/.gitignore_global To automatically ignore certain files globally, create the file (any filename will do) ~/.gitignore_global and place in it something like: To change the default ‘merge’ program to vimdiff, run: Git config -global user.email you want to learn more about git, view the free online book. Git config -global user.name “Jonathan Manton” Installing git is straightforward just go to the download page. The following instructions are valid for linux or Mac, using a recent version of git (tested with git version 1.7.11.1). Note: A long hypen (-) actually means two hyphens next to each other, which is the standard way of specifying ‘long options’ on the command line. ![]() (Although ending up in this situation is best avoided, it is possible to recover by recreating the shared repository from the local repositories.) Therefore, pushes should be infrequent and/or coordinated via email. ![]() Warning: If two people ‘push’ to the repository at the same time then corruption may occur. Although there are various ways of setting up an online repository, perhaps the fastest way to start is by using Drop Box or Google Drive (or equivalent) to share a repository for a specific project. Distributed version control software (git, mercurial, …) provides a safe and convenient means for people to collaborate on projects, including the writing of academic papers using latex. ![]()
0 Comments
Leave a Reply.AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |