Getting started
Open, clone and create repositories
16 min read
Every repository you open, clone or create in Versora goes into the project list on Home and opens in its own tab. This page explains each way to bring a repository into Versora:
- Open a repository that is already on your computer;
- Clone a repository from a server, with the advanced
git cloneoptions; - Create a new repository (
git init), with a README and a.gitignoretemplate; - Scan for repositories in a folder and add several to Home at once;
- Clone an entire group from GitLab (or an organization from GitHub).
Opens a repository that already exists on disk. Versora opens the repository in a new tab (or activates its tab, if it's already open) and adds it to Home.
- Home: the Open card ("Existing repository").
- Shortcut: Ctrl+O, from any tab.
- Palette (Ctrl+P): "Open repository…".
- For a project that is already on Home: click it, or use "Open repository from the list…" in
the palette (or type
repoand the name in the palette). - Outside the app: the Open with Versora item in File Explorer (see Install Versora)
or
versora <folder>on the command line.
- Press Ctrl+O (or click Open on Home).
- In the Open repository window, choose the repository folder (for example,
D:\Projetos\loja-online). - Confirm. The repository opens in a tab, with the graph and the changes.
If you choose a subfolder of the repository (for example, D:\Projetos\loja-online\src),
Versora opens the whole repository, from the root.
To find the repository root, Versora runs:
git rev-parse --show-toplevel
Then it reads the repository (status, branches, tags, stashes and the graph log). Nothing is changed.
Opening doesn't change anything in the repository. To take the project off Home, use Remove from list in the project menu (no file is deleted). To close the tab, Ctrl+W.
- "The folder isn't a Git repository: …": the chosen folder isn't inside a repository. To turn it into one, use New (see "Create a new repository" below).
- "Folder not found: …": the folder was moved or deleted.
- Repository blocked by Git: see the next section.
For security, git refuses to work in a repository whose folder belongs to another Windows user. This is common with drives that come from another Windows installation and with folders copied from another computer. When it happens, Versora explains it and offers to mark the folder as trusted.
- When you open the repository, the Repository blocked by Git window appears, with the message "Git blocked "…" because the folder belongs to another system user (common with drives from another Windows installation or with copied folders). Trusting it adds this folder to safe.directory in your global Git configuration."
- If the folder is yours and you trust its contents, click Trust and open.
- The repository opens normally. From then on, it opens directly.
git config --global --add safe.directory "D:/Projetos/loja-online"
The path is kept in your global git configuration and also applies in the terminal.
There's no Ctrl+Z for this. To take the folder off the trusted list, remove
the matching safe.directory line from your ~/.gitconfig (for example, with
git config --global --unset safe.directory "D:/Projetos/loja-online").
Caution
Only trust folders you know. A repository can have hooks and settings that git runs; the block exists so that someone else's folder doesn't run anything in your name.
- On Home, a project in this state appears with "blocked by Git". The row's Open… button leads to the same question.
Downloads a repository from a server (GitLab, GitHub or another) to a folder on your computer. When it finishes, the repository opens in a tab and goes into Home. The advanced options allow a faster and smaller clone: shallow, single-branch, with submodules or partial.
- Home: the Clone card ("From a URL").
- Palette (Ctrl+P): "Clone repository…".
- A
versora://link to a repository you don't have yet offers Clone (see versora:// links).
- Click Clone on Home.
- In the Clone repository window, paste the repository URL (
https://…orgit@…), for examplehttps://gitlab.empresa.com.br/time/loja-online.git. - In Clone into, choose the folder where the clone will go (the folder button opens the picker). Versora remembers the last folder used.
- In Folder name, leave it blank to use the name that comes from the URL (in the example,
loja-online) or type another one. - (Optional) Open Advanced options and adjust the clone (table below). With any option changed, the title shows "changed" even with the block collapsed.
- Click Clone. The indicator shows "Cloning into D:\Projetos/loja-online…", the phase and the percentage, with Cancel. "Large repositories can take a few minutes."
- When it finishes, the window closes, the repository opens in a tab and goes into Home.
| Option | What it does | Default |
|---|---|---|
| URL | Address of the repository, over HTTPS (https://…) or SSH (git@…). | — |
| Clone into | Folder in which the clone folder will be created. | The last folder used |
| Folder name | Name of the clone folder. | Derived from the URL |
| WSL (button next to the folder) | Picks a folder inside a WSL distro. Only appears with WSL installed. See WSL. | — |
| Shallow clone — only the last N commits | git clone --depth: downloads only the most recent commits. "Faster and smaller. The rest of the history can be downloaded later from the "Shallow clone" bar." | Off (N = 1) |
| Branch (optional) | Branch checked out after the clone (--branch). | (the remote's default) |
| Download only this branch | git clone --single-branch: the remote's other branches aren't downloaded. | Off |
| Also clone submodules | git clone --recurse-submodules. | Off |
| Partial clone — file contents on demand | git clone --filter=blob:none: the full history is downloaded, but the contents of old files are fetched only when needed. | Off |
With Shallow clone on and Download only this branch off, Versora asks git for all
branches, each one shallow (by default, --depth alone would download a single branch).
A single git clone, with the chosen options. For example, shallow with 20 commits, only the
develop branch and with submodules:
git clone --depth=20 --single-branch --branch develop --recurse-submodules -- https://gitlab.empresa.com.br/time/loja-online.git "D:\Projetos\loja-online"
Without any advanced option:
git clone -- https://gitlab.empresa.com.br/time/loja-online.git "D:\Projetos\loja-online"
With a shallow clone, the repository gets the Shallow clone bar below the toolbar ("Shallow clone: only the most recent commits were downloaded. The graph ends where the local history does."). In it:
- Fetch more history… asks how many Additional commits to download (default 50) and runs
git fetch --deepen=50; - Fetch full history runs
git fetch --unshallow.
The same exists in the palette: "Fetch more history (shallow clone)…". With a partial clone, the Partial clone bar reminds you that "file contents are downloaded from the remote when needed. Some operations need a network connection."
The clone isn't part of undo (Ctrl+Z). To undo it, take the project off Home (Remove from list) and delete the clone folder in File Explorer.
A canceled clone leaves nothing behind: Versora deletes the half-created folder, and you can try again with the same name.
- "The folder already exists: …": there's already a folder with that name inside the chosen folder. Choose another Folder name or another destination folder.
- "Invalid folder name": the name can't be empty or contain
/or\. - "Enter a whole number of commits, 1 or more.": the shallow clone depth must be a whole number from 1 up.
- Authentication error (for example, "Authentication failed"): Versora adds "Tip: add this server's credential under "Git servers" (key icon)." See Servers and accounts.
- Certificate or proxy errors come explained in a separate notice, with the fix ready when there is one. See Proxy.
- Partial clone "Requires a server that supports filters (recent GitHub, GitLab and Gitea). Viewing files from old commits will require a connection."
- When cloning over SSH for the first time, Versora asks you to Confirm SSH server and, if the key has a passphrase, for the SSH key passphrase.
- During the clone, the window doesn't close (not even with Esc): use Cancel on the indicator.
- Credentials per server: Servers and accounts.
- The
allowed_serverscompany policy also restricts the servers accepted for cloning. See Company policy.
Creates a git repository in a new folder (or turns an existing folder into a repository), with the
initial branch you choose, a README.md with the initial commit and, if you want, a .gitignore
from a template.
- Home: the New card ("Initialize (git init)").
- Palette (Ctrl+P): "New repository (init)…".
- Click New on Home.
- In the New repository (init) window, in Create in, choose the parent folder (the
Choose folder button opens the picker), for example
D:\Projetos. - In Folder name, type the repository name (for example,
api-pagamentos). Leave it empty to initialize the chosen folder itself. - Check the Initial branch (
main, by default). - Leave Create README.md and the initial commit checked if you want to start with a commit right away.
- (Optional) In .gitignore template (optional), choose a template, for example Node.
- Click Create repository. The repository opens in a tab and goes into Home.
| Option | What it does | Default |
|---|---|---|
| Create in | Folder where the repository will be created. Required. | — |
| Folder name | Subfolder to create. "(empty = initialize the chosen folder itself)" | Empty |
| Initial branch | Name of the first branch (git init -b). Required. | main |
| Create README.md and the initial commit | Creates a README.md with the title # <folder name> and makes the first commit. | Checked |
| .gitignore template (optional) | Writes a .gitignore with the chosen template. | None |
Available templates (built into the app, nothing is downloaded): Node, Python, Java, Maven, Gradle, Kotlin, Android, .NET / Visual Studio, Rust, Go, C / C++, PHP / Composer, Laravel, Ruby / Rails, Dart / Flutter, Swift / Xcode, Unity, Terraform, Visual Studio Code, JetBrains (IntelliJ, Rider…), Vim, Windows, macOS and Linux.
Here you choose a single template. To combine several templates or add to a .gitignore that
already exists, use .gitignore templates… later (see Ignoring files).
With everything checked and the Node template:
git init -b main
# README.md with "# api-pagamentos"
git add -- README.md
git commit -m "Initial commit"
# .gitignore with the template lines, included in the initial commit
git add -- .gitignore
git commit -q --amend --no-edit --no-verify
- The initial commit message comes out in the interface language ("Initial commit" in English).
- The
.gitignoregoes into the initial commit only when Versora has just created it. Without the README (and therefore without an initial commit), the.gitignoreis written and stays as a new file, for you to commit whenever you want.
Creation isn't part of undo (Ctrl+Z). To undo it, take the project off Home
(Remove from list) and delete the folder in File Explorer (or just the .git folder inside it,
if the folder already existed).
- "There's already a Git repository at …": the folder already has a
.git. Use Open instead of New. - "Repository created, but the initial commit failed: …": the repository was created, but the commit wasn't. The most common reason is a missing git name and email. Versora opens the repository anyway; set up your identity and make the first commit from the commit box.
- "The repository already has a .gitignore.": the folder already had a
.gitignore, which wasn't replaced.
There's no preference for the initial branch: the Initial branch field comes with main every
time you create a repository (the init.defaultBranch of your git configuration isn't used to fill
it). For another name, change the field when you create the repository.
- Ignoring files and .gitignore templates
- The commit box
- Publish to the server (repository without a remote)
Scans a folder (and its subfolders, down to the chosen depth) for git repositories and adds the
ones you select to Home, in an existing or new group. It's the fastest way to bring into Versora a
folder like D:\Projetos, with dozens of repositories.
- Home: the Scan for repositories… button, next to New group ("Search a folder for Git repositories and add them to the Home screen").
- Preferences › Navigation and appearance › Tabs and projects › Projects: the Scan for repositories… button.
- Palette (Ctrl+P): "Scan a folder for repositories…".
- Click Scan for repositories… on Home.
- In Folder, type or choose (Choose folder…) where to look, for example
C:\Projetos. - In Depth, choose how many levels below the folder to look (from "1 level down" to "8 levels down").
- (Optional) Check Also look inside repositories (submodules and nested repositories).
- Click Scan. The progress shows "Scanning… Folders visited: 1,240 · repositories: 18" and then "Checking the repositories found: 5 of 18". Cancel scan stops midway and shows what was found up to that point.
- In the Repositories found list, select the ones that go into Home (Select all and Clear all help). The summary says "18 repositories found · new to the Home screen: 12".
- In Group on the Home screen, choose No group, an existing group or New group… (and type the New group name).
- Click Add 12 to Home. The notice confirms it, for example "12 projects added to the Home screen, in the Clientes group."
- For another folder, Scan again; to leave, Close.
| Option | What it does | Default |
|---|---|---|
| Folder | Where to look. | The last one used |
| Depth | How many levels below the folder to look (1 to 8). | 3 levels (or the last one used) |
| Also look inside repositories (submodules and nested repositories) | Keeps scanning inside each repository found. | Unchecked (or the last choice) |
| Group on the Home screen | Group the checked ones go into. | No group |
What is skipped: "Hidden folders, node_modules and target are skipped, and shortcuts (symlinks and junctions) aren't followed."
Badges in the list:
| Badge | Meaning |
|---|---|
| already on Home | The repository is already a Home project. |
| another user's | "The folder belongs to another Windows user. When you open the project, Versora asks whether to trust it." |
| not a repository | It has a .git folder, but git doesn't recognize it as a repository. |
The scan walks the folders on disk and checks each repository found with git, without changing anything. The added projects only go into the Home list: none is opened or modified.
Take the ones you don't want off Home: select them (Ctrl+click) and use Remove N projects from the list… in the selection menu. No file is deleted.
- "The scan stopped after 200,000 folders, the limit for one scan. Choose a more specific folder or a smaller depth to see the rest."
- "3 folders couldn't be read (no permission) and were skipped."
- "No repositories found. Folders visited: …."
- "Choose the folder to search." and "The folder "…" doesn't exist or can't be opened.": check the Folder field.
Picks a GitLab group (with its subgroups) or a GitHub account or organization and clones many projects at once. The cloned projects go into Home in a group with the name of the server group. It's the way to prepare the computer of someone who has just joined the team.
- Home: the Clone group… card ("Every project in a group").
- Palette (Ctrl+P): "Clone an entire group…".
The Clone an entire group window has three steps: Server and group, Projects and folders and Clone.
1. Server and group
- In Server, choose the registered GitLab or GitHub server, for example "gitlab.empresa.com.br (GitLab)". A server without a token appears as "— no token".
- In Group (on GitLab) or Account or organization (on GitHub), search by name or path (Search by name or path). Your account appears with the your account badge, and organizations with organization.
- Double-click the group (or select it and click Continue). "For a GitLab group, its subgroups come along."
2. Projects and folders
- Check the project tree, with the subgroups. By default, all non-archived projects come checked. Use Filter by name, Select all, Clear all or each subgroup's checkbox.
- Hide archived (N) comes on. Turn it off to see (and check) the archived ones.
- In Destination folder, choose where the projects will go (for example,
D:\Projetos). - In Folder structure, choose Mirror group and subgroups (group/subgroup/project) or All projects in the same folder. The Example: shows where one of the projects will end up.
- In Protocol, choose HTTPS (uses the Git servers token) or SSH (uses your SSH key).
- (Optional) In Clone options, turn on shallow clone, partial clone or submodules.
- Check the summary ("12 projects to clone.", "1 is already cloned in its folder: it's only added to Home.", "1 selected project is left out: its folder is in use.") and click Clone 12 projects.
3. Clone
- The list shows each project with its state (waiting, cloning, cloned, already cloned, skipped, error, canceled) and the git phase. Versora clones three projects at a time.
- To cancel one project, use its button ("Cancel cloning …"); to stop everything, Cancel all.
- To keep working, click Minimize (clones keep running). A notice in the corner shows "Cloning time-pagamentos: 5 of 12"; click it to see the progress.
- At the end, the summary shows, for example, "Done: 11 cloned · 1 error · 2 min" and "Group time-pagamentos in Home: 12 projects."
- Choose Show in Home (Home opens filtered on the new group), Open all 12 in tabs or Retry the one that failed.
| Option | What it does | Default |
|---|---|---|
| Server | GitLab or GitHub server registered in Git servers, with a token. | The last one used (otherwise, the first one with a token) |
| Hide archived (N) | Hides the archived projects, which are left out of the clone. | On |
| Destination folder | Where the projects will go. | The last one used (or the one from the simple clone) |
| Folder structure | Mirror group and subgroups creates group/subgroup/project; All projects in the same folder puts them all side by side. | Mirror (or the last choice) |
| Protocol | HTTPS uses the registered token; SSH uses your SSH key. | The one most used by the Home projects of that server (HTTPS if there are none) |
| Shallow clone — only the last N commits | git clone --depth. | Off (N = 1) |
| Partial clone: file contents on demand (blob:none) | git clone --filter=blob:none. | Off |
| Also clone submodules | git clone --recurse-submodules. | Off |
Project badges:
| Badge | Meaning |
|---|---|
| archived | The project is archived on the server. |
| empty | The project has no commits. |
| already cloned | "This project is already cloned at … (remote …): it's only added to Home." |
| folder in use | The destination folder already holds something else: the project is left out. |
| folder: … | The project goes into a folder with a different name. |
One git clone per project, three at a time, with the chosen options and the URL of the chosen
protocol:
git clone -- https://gitlab.empresa.com.br/time-pagamentos/backend/api.git "D:\Projetos\time-pagamentos\backend\api"
Projects that were already cloned in the right folder aren't downloaded again: they only go into Home.
The clones aren't part of undo (Ctrl+Z). To undo them, delete the cloned folders and take the projects off Home. A canceled clone leaves nothing: "Canceled. Everything already downloaded was deleted."
- "No GitLab or GitHub server is registered. Register the server with an access token to list its groups.": use Register a server….
- "There's no token registered for …": register in Git servers a token with the
apiscope (GitLab) orrepo, read:org(GitHub). - "GitLab rejected the token registered for … (401)…": the token is wrong, expired or revoked. Use Update the token….
- "The token registered for … isn't allowed to list groups and projects (403)…": the token is missing a scope.
- "You aren't a member of any group on this server."
- "The list shows the first N groups; searching also looks on the server." and "The group has more projects than the limit read (N); the rest aren't shown."
- "The folder already holds another repository (remote …: …)." and "The folder already exists and isn't empty.": reasons for "folder in use".
- "Enter the full path of the destination folder (for example, D:\Projects)."
- "The server provided an unencrypted address (http://): … Use SSH or fix the server's external URL."
- A project that was already on Home in another group stays where it was: "1 project that was already in Home in another group stayed where it was."
- With an authentication error in the clone, the summary suggests: "Check the token for … in Git servers (or use SSH)."
- Clicking outside the window doesn't close it, so you don't lose the selection. Esc closes it (or minimizes it, if there are clones in progress).
- Tokens and accounts: Servers and accounts.
- The company policy's
allowed_serverslimits the accepted servers. See Company policy.
Versora also opens and clones repositories that live inside a Linux distro in WSL, using the git of the distro itself. There's the Repository in WSL card on Home (it only appears with distros installed), the WSL button next to the clone destination folder and the "Open a repository in WSL…" command in the palette. Everything about it is in WSL.