GUI Manual · Chapter 42

Git Version Control

If the project folder is a Git repository, the Git items of the File menu let you check changes, commit, revert and push inside QMachineStudio. Git must be installed on the PC.

Git items of the File menu

MenuAction
Git AddOpens a window that stages the checked files among the changed files. Revert in the right-click menu applies to the one selected file only.
CommitOpens the commit window. All changed files are shown even without Git Add; commit only the checked files.
RevertOpens a window that returns the checked files to the last commit at once.
PushPushes to the remote repository after confirmation and shows the result in a window.
Show Git LogOpens the commit history in the TortoiseGit log window. TortoiseGit must be installed in its default folder C:\Program Files\TortoiseGit.

Git Add window

File → Git Add
File → Git Add
  • Shows file states as words such as Modified · Untracked.
  • Check the files to stage and press ADD. SELECT ALL and CLEAR change all check boxes at once.

Commit window

File → Commit
File → Commit
  • The commit message box starts with the project version in the form [version]. Write the changes after it.
  • Changed files are shown with colored icons per state (hover for Modified · Added · Deleted · Renamed · Untracked etc.).
  • Double-click a file to open the QMS COMPARE CHANGES window, which compares the last commit (HEAD) version with the working folder version (4.0.32~ — TortoiseGit is not needed). Choose the [Side by side] · [Inline] view, move between changes with previous · next change (Alt + ↑ / Alt + ↓), and turn on [Ignore whitespace] to treat lines that differ only in spaces or tabs as unchanged. Changed words inside changed lines are highlighted, the header shows the file encoding, and it tells you when only the line endings (CRLF/LF) differ. New (Untracked) files also open in this window. Binary files open in TortoiseGit as before (only a notice if it is not installed), and files that are too large are not compared. For a screen design file (.xmd), choose [Screen] at the top to see controls added · removed · changed with the before and after values of properties and events, with the changes highlighted on the before and after pictures (4.1.34~ — does not use AI, Screen (.xmd) compare).
  • A staged file whose check is cleared is unstaged automatically when you commit.
  • [AI DRAFT] (4.1.32~) — AI (Claude) writes a commit message draft from the changes of the checked files. Pressing it opens the 'AI COMMIT MESSAGE DRAFT' window, which first shows what will be sent (number of files · characters · estimated tokens · estimated cost · model, and how much of each file is sent); nothing is sent until you press [SEND].
    • What is sent: the changes of the checked files, the last 15 commit subjects of this repository and the text typed in the message box (a note telling the AI what the change is about). Values that look like keys or passwords are hidden as *** before sending, but hiding works by patterns, so check the full text with [VIEW TEXT]. Binary files, files that are too large and files that may hold secrets are sent by name only, and long changes only by their beginning.
    • When the answer arrives, edit the draft and press [USE DRAFT] to put it in the message box — AI does not commit or push. [STOP] stops a request while sending, and it stops by itself if the machine starts moving or a build starts.
    • It works only in studio mode with the machine fully stopped and no build running, with an AI license and a saved API key (Tool Options → AI tab). Usage is billed to the Console organization of your Claude API key → AI Features and the Claude API Key
  • After committing with COMMIT, press PUSH in the same window to push to the remote repository after confirmation. Close the window with CANCEL or Esc.

Note The Git windows mostly follow the development screen display language; the commit window title, the COMMIT / PUSH / CANCEL buttons and the push result window are always in English. Buttons can also be pressed with Alt + the underlined letter.

Subscribe