gerardog/gsudo

Sudo for Windows

View on GitHub ↗Jump to charts ↓Open shareable report

Summary Information

Updated 37 minutes ago
Added to GitGenius on September 11th, 2026
Created on November 7th, 2019
Open Issues & Pull Requests: 51 (+0)
GitHub issues: Enabled
Number of forks: 167
Total Stargazers: 6,049 (+0)
Total Subscribers: 40 (+0)

Repository Insights (GitGenius)

Median issue/PR response: 39.4 hours
Mean response time: 103.4 days
90th percentile: 375.2 days
Tracked items: 25

How this project is maintained

Around half of the issues opened in the past year never receive a reply. Only 7% of issues opened in the past year have been closed. Three people close 100% of everything that gets resolved.

Charts & Analytics

Fetching additional details & charts...

Issue Activity (beta)

Open issues: 14
New in 7 days: 0
Closed in 7 days: 0
Avg open age: 655 days
Stale 30+ days: 11
Stale 90+ days: 8

Recent activity

Opened in 7 days: 0
Closed in 7 days: 0
Comments in 7 days: 0
Events in 7 days: 0

Top labels

  • unable-to-reproduce (2)
  • documentation (1)

Most active issues this week

No issue events were indexed in the last 7 days.

Detailed Description

gsudo is a sudo equivalent for Windows that allows you to run commands with elevated permissions from your current console window.

The tool solves the friction of Windows privilege elevation by providing a Unix-like sudo experience. Rather than using the native runas command or right-clicking to open an elevated prompt, you simply prepend gsudo to your command. It detects your current shell environment—whether CMD, PowerShell, WSL, Git Bash, MinGW, Cygwin, or several others—and elevates the command natively within that shell. A UAC popup appears each time unless you enable the credentials cache, which allows multiple elevated commands to run with a single prompt.

Developers and system administrators accustomed to Unix/Linux workflows will find gsudo most valuable, particularly those working across Windows and Unix-like systems or using WSL. It suits any project where command-line privilege elevation is frequent enough to justify avoiding the overhead of opening a new elevated window. The tool integrates seamlessly into scripts, preserving stdout, stderr, and exit codes so output can be piped or captured normally. If you run gsudo from an already-elevated console, it executes without prompting, making it safe to use in scripts regardless of the caller's privilege level. The project explicitly positions itself as a Windows alternative to Unix sudo, making the comparison implicit in its design rather than through documented alternatives.

Development activity shows consistent maintenance with regular updates addressing edge cases and shell compatibility. The project maintains broad shell support, regularly adding detection for additional terminal environments. Bug fixes and feature requests receive attention, and the maintainer actively documents known issues and limitations rather than obscuring them.