GNU TeXmacsUser manualReferenceAboutEnglish
Preferences, shortcuts and troubleshooting
Preferences

Version\(\rightarrow\)Git preferences opens a dialog with the following settings:

Versioning tool

When the Version menu is shown: Automatic (for documents in a repository), Always or Never. This is the same setting as Tools\(\rightarrow\)Versioning tool.

Mode

The simple mode with snapshots, or the full mode with staging and branches.

When both sides changed

What to do when your changes and those of your coauthors have to be combined: ask before merging (Fast-forward only), Merge, or Rebase. See working with coauthors.

Git executable

The Git program, if it cannot be found automatically.

Warn for files larger than

Adding a larger file to the repository asks for a confirmation, since large files make the repository heavy for all coauthors.

Commits examined by blame

How far back in the history Version\(\rightarrow\)Who changed what looks.

Commits per page of the log

The number of commits shown at once by Version\(\rightarrow\)Git\(\rightarrow\)History.

Sign commits and tags with GnuPG

Sign your commits and tags with your GnuPG key.

Suggest commit messages

Whether the commit dialog starts with a suggested message.

The folders in which TeXmacs may run Git (see getting started) are also remembered in the preferences.

Keyboard shortcuts

The following shortcuts are available in documents which belong to a repository, unless the versioning tool is set to Tools\(\rightarrow\)Versioning tool\(\rightarrow\)Never:

Shortcut Action
⌘⌃#G Open the Git panel
⌘⌃#C Commit, or save a snapshot in the simple mode
⌘⌃#Y Synchronize with the coauthors
⌘⌃#S Show the status page
⌘⌃#= Compare the document with its last commit

Table 1. Keyboard shortcuts for Git.

On macOS, the prefix ⌘⌃# is ⌘⌃#, which the system uses for screenshots: disable that system shortcut in the keyboard settings, or use the menus.

When something goes wrong

When Git cannot complete an operation, TeXmacs opens a dialog which explains what happened in plain words, together with the message of Git. When possible, the dialog proposes the next step: for instance, when the server refused your changes because others sent changes first, it offers to get their changes. The button Details opens the page Version\(\rightarrow\)Git\(\rightarrow\)Git output, which lists the last commands executed by TeXmacs, with their complete output; this page is also useful when asking for help.

Some common situations:

The Version menu only offers Use Git in this folder

The repository was not created or cloned by TeXmacs; see getting started.

The server refused the access

Configure an SSH key or a credential helper: TeXmacs cannot ask for passwords on behalf of Git.

Some of your changes would be overwritten

Commit your changes, or save a snapshot, before getting the changes of others or switching branches.

The state shown is not up to date

This may happen when files are changed by another program. Use Version\(\rightarrow\)Git\(\rightarrow\)Refresh (in the full mode), or the Refresh button of the status page.

A document was not reloaded

Documents with unsaved changes are never reloaded automatically. Save your changes under another name, or revert the document with File\(\rightarrow\)Revert.

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".