Ask Your Question

git version control in LibreOffice

asked 2015-12-14 12:05:08 +0200

trosendal gravatar image

Use libgit2 in LibreOffice.

  • When you enable version control on your document then the document becomes a git repository and every save is a commit.
  • When you get someone else's changes to the document you 'fetch' and 'merge' their new commits. The other party could do the same by merging your commits in their clone.
  • Because it is a git repository it could be linked to a github repository (or local server) that people can collaborate on but also work offline when they need to.
  • Track changes is a view of 'git blame' and the version history in a plot of the repository tree.

Why re-invent version control when 'libgit2' gives you an api you can bundle with you software?

edit retag flag offensive close merge delete


I haven't dug into this yet - I probably will if I use Libreoffice extensively - but it seems that there are some ways to get some versioning working without a major reformat

Take a look at and

jcrben gravatar imagejcrben ( 2018-03-12 01:08:55 +0200 )edit

1 Answer

Sort by » oldest newest most voted

answered 2015-12-15 10:15:30 +0200

Regina gravatar image

If you have good ideas how to bring the ODF file format in its zip-kind into Git, please share it. If you can work out which changes to the ODF file format in its flat kind are necessary to get a good handling in Git, please share it. There are currently discussions in the ODF TC about that.

"the document becomes a git repository" will only be possible when changing the ODF standard. A LibreOffice user forum is the wrong place to discuss it. For contact the ODF TC start at

edit flag offensive delete link more
Login/Signup to Answer

Question Tools



Asked: 2015-12-14 12:05:08 +0200

Seen: 3,058 times

Last updated: Dec 15 '15