https://github.com/equalsraf/dropbox-paper
Minimal script to wrap my usage of dropbox+git to write papers. Go RESEARCH!
https://github.com/equalsraf/dropbox-paper
Last synced: 7 months ago
JSON representation
Minimal script to wrap my usage of dropbox+git to write papers. Go RESEARCH!
- Host: GitHub
- URL: https://github.com/equalsraf/dropbox-paper
- Owner: equalsraf
- License: isc
- Created: 2015-02-07T16:19:22.000Z (over 11 years ago)
- Default Branch: master
- Last Pushed: 2017-08-21T14:52:57.000Z (almost 9 years ago)
- Last Synced: 2025-02-02T00:31:59.120Z (over 1 year ago)
- Language: Python
- Size: 2.93 KB
- Stars: 11
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
I like keeping my papers under git version control. **Problem:** my supervisor
does not use Git, he just wants to read a PDF and make some changes in the
text. I want to share the paper via Dropbox but I also want to keep my git repo
under Dropbox, and I certainly don't want to go around doing an intricate dance
of copying around folders.
To get started:
1. create a git repository with your paper, and commit
2. `dropbox-paper init ~/Dropbbox/CureForCancerPaper` this will clone the repo
into your Dropbox, and setup a workcopy branch in the Dropbox folder, the remote
repo is named dropbox-paper
It is perfectly safe to `git push dropbox-paper master` this will not alter the
workcopy in the Dropbox folder, only the .git folder. Better yet you can call
`dropbox-paper push` as this will push your changes, and update the workcopy -
but only if it was not changed.
`dropbox-paper status` shows information about the workcopy status, and dropbox sync.
The folder in Dropbox is just another repo, but the checked out branch is not
the *master* branch, instead it is called *workcopy*. This avoids issues when
a push is done into dropbox.
`dropbox-paper push` will try a clean fast-forward merge if there are no changes
in the working copy in Dropbox. If there are changes it will just print a message.