Git Client
AnyAutomation Studio includes the built-in Git support of its editor foundation. Version control runs through the Source Control view rather than a separate window, so you stage, commit, and sync changes without leaving the workbench. Open a folder that is a Git repository and Source Control activates automatically.
Source Control View
Open the Source Control view from the Activity Bar (the vertical icon strip on the far left) or with Ctrl+Shift+G. The view lists every change in the open repository and is where you do most day-to-day Git work.
The Activity Bar icon shows a small count badge whenever the repository has pending changes, so you can see at a glance that there is work to commit.
Opening a Repository
Source Control follows the folder you have open in the workbench:
- Open the folder of your project with File → Open Folder (Ctrl+K Ctrl+O)
- If the folder is a Git repository, the Source Control view populates automatically
- If the folder is not yet a repository, the Source Control view offers Initialize Repository
You can also clone a repository: open the Command Palette (Ctrl+Shift+P) and run Git: Clone, then provide the repository URL and a target folder.
Staging and Committing
The Source Control view groups your changes into Staged Changes and Changes (unstaged).
- Hover a file and click the + icon to stage it, or stage every change with the + on the Changes group header
- Click the − icon to unstage a file
- Each file shows a single-letter status indicator — M (modified), A (added), D (deleted), U (untracked), R (renamed)
- Type your commit message in the message box at the top of the view
- Click the Commit checkmark (or press Ctrl+Enter in the message box) to commit the staged changes
If nothing is staged when you commit, the editor offers to commit all changes. Use the ·· · (More Actions) menu at the top of the view for related commands such as Commit All, Commit Staged (Amend), and Stash.
Viewing Changes (Diff)
Click any changed file in the Source Control view to open the diff editor in the center editor area. The diff editor shows the previous content and your current content side by side (or inline — toggle the layout from the editor toolbar). Within the diff editor you can stage or revert individual changed regions from the inline gutter controls.
Branches and Sync
The current branch is shown at the left of the Status Bar (the bar along the very bottom of the window).
- Click the branch name to switch branches or create a new branch from the picker that appears
- The sync indicator next to the branch name shows how many commits you are ahead of or behind the upstream branch; click it to pull then push (synchronize)
- Run Git: Push, Git: Pull, Git: Fetch, Git: Merge, and other branch operations from the Command Palette (Ctrl+Shift+P), or from the ·· · menu at the top of the Source Control view
Git Output
When a Git command runs, its raw output is written to the Git channel in the Output view (part of the bottom Panel). Open the Panel, switch the dropdown to Git, and you can read exactly what commands ran and any errors they returned — useful when an operation does not behave as expected.
History and Annotations
Browsing commit history, file history, and per-line blame depends on which extensions you have installed. The base editor surfaces the Timeline view (in the Explorer) showing the commit history of the currently open file, and inline change indicators in the editor gutter. Richer commit-graph, blame, and pull-request views are provided by Git extensions you can add from the marketplace; describe those features per the extension you install, since they are not part of the built-in experience.