GNU TeXmacsUser manualReferenceAboutEnglish
Working with Git

Git is a version control system: it records successive versions of the files of a project, called commits, in a repository. It allows you to go back to any earlier version, to see who changed what, and to combine the changes of several authors who work on their own copies of the same project. Most hosting services for collaborative work, such as GitHub, GitLab or Codeberg, are based on Git.

TeXmacs can be used as a complete interface to Git for your documents: you do not need to use a terminal or another program. All commands are in the Version menu, which appears automatically for documents inside a Git repository. Moreover, TeXmacs understands the structure of its documents, which makes several operations more pleasant than with general purpose tools:

TeXmacs offers two ways of working. In the simple mode, you only save snapshots of your project and synchronize them with your coauthors; this is sufficient for most collaborations on a paper or a book, and requires no knowledge of Git. The full mode gives access to the usual notions of Git: staging, branches, tags, stashes and remote repositories.

Permission is granted to copy, distribute and/or modify this document under the terms of the GNU Free Documentation License, Version 1.1 or any later version published by the Free Software Foundation; with no Invariant Sections, with no Front-Cover Texts, and with no Back-Cover Texts. A copy of the license is included in the section entitled "GNU Free Documentation License".