Securely Share Documents

Document version control system

One of the major challenges of writing a journal article is to keep track of versions - both the different versions you create as the document progresses, and to merge in the changes made by your collaborators. For most academics Microsoft Word is the default writing tool, and it is both very good and very bad in this. Very good because the track changes feature makes it easy to see what has changed since the last version and who made the changes. Very bad because this feature is built around keeping everything in a single Word document, so that only one person can work on on a manuscript at a time. This usually means sending manuscripts around by email, and being very careful about not confusing different versions of the document, which requires creativity.

Approaches to overcome these challenges are to a) integrate the Word documents into collaboration tools such as Sharepoint and Office 365, or document sharing services such as Dropbox and Google Docs (if you use it just for that), or b) use a different authoring tool altogether. If neither of these approaches works for you, you have a third option: use the version control system git.

Git is software that helps with tracking changes to files so that you can recall specific versions later. Git is typically used to track changes of software source code (and was originally developed by Linus Torvalds for Linux kernel development in 2005), but in fact git can be used for any file where we need to keep track of versions over time. Git is open source software that runs locally on your computer, so please go ahead and start tracking changes to your manuscripts (or other complex documents) with git. Any time you want to store a version, do a git commit with a little description and an optional tag.

This approach is not ideal, as git was written with source code in text format in mind and for example doesn’t understand what has changed between two revisions of a Word document. Some people will tell you to never store binary files in a version control system, but don’t listen to them. Instead give git a tool to convert Word documents into plain text, and git will then happily tell you what has changed between revisions. Several tools can do this, but since earlier this month Pandoc can read Word documents in docx format. Do the following to have Pandoc convert Word documents into markdown, and to compare the revisions by word and not by line (which makes more sense):

# .gitattributes file in root folder of your git project *.docx diff=pandoc

# .gitconfig file in your home folder [diff "pandoc"] textconv=pandoc -to=markdown prompt = false [alias] wdiff = diff -word-diff=color -unified=1

You can then use git wdiff important_file.docx to see the changes (with deletions in red and insertions in green), or git log -p -word-diff=color important_file.docx to see all changes over time.

Share this article

Related Posts

Version control system PPT
Version control system PPT

Latest Posts
Closed loop servo system
Closed loop servo…
Technological advancements are changing…
Traction control system Problems
Traction control…
Many new cars that have TCS/ABS systems…
EVAP Emission control system
EVAP Emission…
The real-world effectiveness of evaporative…
Open loop system transfer function
Open loop system…
Compute the open-loop response of the…
Open loop system transfer function
Open loop system…
Compute the open-loop response of the…
Featured posts
  • Subversion version control system
  • Version control system PPT
  • Version control systems list
  • Polytron version control system
  • VCS (Version control System)
  • Version control system Wiki
  • OpenSource version control systems
  • Fault in emission control system
  • ABC inventory control system
Copyright © 2017 l All rights reserved.