A Windows desktop application for managing large Git repositories using Scalar and sparse-checkout. Built with WPF and .NET 8.
Working with monorepos or very large Git repositories can be painful β cloning takes forever, and you end up downloading files you don't need. Scalar and Git sparse-checkout solve this, but they're command-line tools with many flags to remember.
ScalarGui wraps these tools in a simple, guided UI so you can:
- Clone huge repos efficiently via Scalar
- Pick only the folders you need with a visual tree browser
- Skip the CLI entirely
On first launch, ScalarGui verifies that Git and Scalar are installed. If either is missing, it shows download links and won't let you proceed until everything is ready.
Clone repositories using scalar clone with a full set of options:
- Branch selection β clone a specific branch
- Single branch / No tags β minimize what gets downloaded
- Full clone β opt out of partial clone if needed
- No src/ β skip Scalar's default
src/directory wrapper - GVFS protocol β for Azure DevOps repos that support it
- Duplicate detection β if the target directory already has a
.gitfolder, ScalarGui warns you and offers to open the existing repo instead of cloning again
After cloning, browse the repo's directory tree and select only the folders you want to work with:
- Visual tree with expand/collapse
- Add or remove folders from the sparse-checkout set
- Real-time log output showing what Git is doing
ScalarGui persists your last-used:
- Repository URL
- Clone target directory
- Last opened repo path
So you don't have to re-type everything when you reopen the app.
Configure custom paths for git and scalar executables if they're not on your system PATH.
| Tool | Version | Download |
|---|---|---|
| .NET 8 Runtime (Desktop) | 8.0+ | dotnet.microsoft.com |
| Git | 2.25+ | git-scm.com |
| Scalar | Latest | github.com/microsoft/scalar |
Note: Git 2.25+ is required for sparse-checkout support. Scalar is bundled with recent versions of Git for Windows.
git clone [<repository-url>](https://github.com/JayWang0/ScalarGui.git)
cd ScalarGui
dotnet build ScalarGui.slnx or dotnet run -project .\ScalarGui.csprojdotnet run --project src/ScalarGuiOr open ScalarGui.slnx in Visual Studio 2022+ and press F5.
ScalarGui/
βββ ScalarGui.slnx # Solution file
βββ src/ScalarGui/
βββ Models/ # Data models (GitConfig, AppSettings)
βββ Services/ # Git, Scalar, sparse-checkout, persistence services
βββ ViewModels/ # MVVM ViewModels (CommunityToolkit.Mvvm)
β βββ SetupViewModel.cs # Prerequisites detection
β βββ CloneViewModel.cs # Clone workflow + input persistence
β βββ SparseCheckoutViewModel.cs # Tree browser + folder selection
β βββ SettingsViewModel.cs # Tool path configuration
β βββ MainViewModel.cs # Navigation orchestrator
βββ Views/ # WPF XAML views
βββ Converters/ # Value converters
βββ app.ico # Application icon
- WPF (.NET 8) β desktop UI framework
- CommunityToolkit.Mvvm β MVVM source generators (
[ObservableProperty],[RelayCommand]) - Scalar CLI β efficient large-repo cloning
- Git CLI β sparse-checkout and tree operations
- Setup β App checks that Git and Scalar are installed
- Clone β Enter a repo URL, pick a target directory, configure options, and clone
- Sparse-Checkout β Browse the repo tree and select only the folders you need
- Work β Open the repo in your editor with only the files you selected
ScalarGui is licensed under the MIT License.