![]() |
Preferences, shortcuts and troubleshooting | ![]() |
Version\(\rightarrow\)Git preferences opens a dialog with the following settings:
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.
The simple mode with snapshots, or the full mode with staging and branches.
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.
The Git program, if it cannot be found automatically.
Adding a larger file to the repository asks for a confirmation, since large files make the repository heavy for all coauthors.
How far back in the history Version\(\rightarrow\)Who changed what looks.
The number of commits shown at once by Version\(\rightarrow\)Git\(\rightarrow\)History.
Sign your commits and tags with your GnuPG key.
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.
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:
|
||||||||||||
On macOS, the prefix ⌘⌃# is ⌘⌃#, which the system uses for screenshots: disable that system shortcut in the keyboard settings, or use the menus.
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 repository was not created or cloned by TeXmacs; see getting started.
Configure an SSH key or a credential helper: TeXmacs cannot ask for passwords on behalf of Git.
Commit your changes, or save a snapshot, before getting the changes of others or switching branches.
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.
Documents with unsaved changes are never reloaded automatically. Save your changes under another name, or revert the document with File\(\rightarrow\)Revert.