Notices: This section not yet converted to new layout. Download stats are rolling back out.

This is not the latest version of GitHub Desktop available.

GitHub Desktop

Package test results have failed.

This package is unlisted and hidden from package listings.

This package was approved as a trusted package on 8/3/2016.

GitHub Desktop includes a fully functional version of msysgit — no need to install anything extra. You can pull up a PowerShell console within the context of any repository. GitHub for Windows even includes the amazing posh-git utility for your command line pleasure. Account

  • Requires a free account for creating or contributing to GitHub repositories.
  • Free to use for public projects.
  • Private repositories require a paid plan.



  • tools\githubUninstall.ahk Show
    ; default environment
    DetectHiddenWindows, off
    SetControlDelay, 20
    ; modified environment
    DetectHiddenText, off
    SetTitleMatchMode, 1
    winTitle = GitHub Maintenance
    WinWait, %winTitle%, Choose the type of maintenance you need, 120
    ControlGet, controlHwnd, Hwnd, , Remove the application, %winTitle%
    ControlClick, , ahk_id %controlHwnd%
    ControlClick, &OK, %winTitle%
  • tools\githubInstall.ahk Show
    ; default environment
    DetectHiddenWindows, off
    SetControlDelay, 20
    SetKeyDelay, 10
    ; modified environment
    DetectHiddenText, off
    SetTitleMatchMode, 1
    winTitleInstall = Application Install - Security Warning
    winTitleInstallText = Do you want to install
    winTitleOpen = Open File - Security Warning ahk_exe dfsvc.exe
    winTitleOpenText = Do you want to run this file
    winTitleProgress = Installing GitHub
    winTitleExec = GitHub ahk_exe GitHub.exe
    ; Confirm start install
    WinWait, %winTitleInstall%, %winTitleInstallText%
    ControlClick, &Install, %winTitleInstall%
    ; Download progress window
    ; About 110 MB file with 1.0 Mbps bandwidth will download in about 15 seconds
    SetTitleMatchMode, 2
    WinWait, %winTitleProgress%, This may take several minutes, 5
    WinMinimize, %winTitleProgress%, This may take several minutes
    ; Upon completion of download, files are extracted and exe is started:
    ;   $Env:LocalAppData\Apps\2.0\varSysUniq01\varSysUniq02\
    ;   gith..tion_317444273a93ac29_0002.000d_7c798cfff9a06ed4\GitHub.exe
    SetTitleMatchMode, 1
    WinWait, %winTitleOpen%, %winTitleOpenText%
    ; Multiple ControlClick's are not reliable so loop until window gone
    Loop, 100 {
      IfWinExist, %winTitleOpen%, %winTitleOpenText%
        ; unblock executable
        ControlGet, chk, Checked, , Button4, %winTitleOpen%
        if chk
          ControlClick, Button4, %winTitleOpen%
        ControlClick, &Run, %winTitleOpen%
      IfWinNotExist, %winTitleOpen%, %winTitleOpenText%
    WinWait, %winTitleExec%
    WinClose, %winTitleExec%
  • tools\chocolateyUninstall.ps1 Show
    $packageName = 'github'
    $packageSearch = $packageName
    $installerType = 'exe'
    $silentArgs = ''
    $validExitCodes = @(0)
    $scriptPath = $(Split-Path -parent $MyInvocation.MyCommand.Definition)
    $ahkFile = Join-Path $scriptPath "$($packageName)Uninstall.ahk"
    $ahkRun = "$Env:Temp\$(Get-Random).ahk"
    Copy-Item $ahkFile "$ahkRun" -Force
    $ahkProc = Start-Process -FilePath 'AutoHotKey' `
                             -ArgumentList $ahkRun `
    Write-Debug "$ahkRun start time:`t$($ahkProc.StartTime.ToShortTimeString())"
    Write-Debug "$ahkRun process ID:`t$($ahkProc.Id)"
    Get-ItemProperty -Path @( 'HKLM:\Software\Wow6432Node\Microsoft\Windows\CurrentVersion\Uninstall\*',
                              'HKCU:\Software\Microsoft\Windows\CurrentVersion\Uninstall\*' ) `
                     -ErrorAction:SilentlyContinue `
    | Where-Object   { $_.DisplayName -like "$packageSearch" } `
    | ForEach-Object { Uninstall-ChocolateyPackage -PackageName "$packageName" `
                                                   -FileType "$installerType" `
                                                   -SilentArgs "$($_.UninstallString -Replace "[^ ]+(.*)",'$1')" `
                                                   -File "$($_.UninstallString -Replace "([^ ]+).*",'$1')" `
                                                   -ValidExitCodes $validExitCodes }
    Remove-Item "$ahkRun" -Force
  • tools\chocolateyInstall.ps1 Show
    Write-Verbose "Setting generated package variables."
    $packageName = 'github'
    $packageVersion = [System.Version]''
    $installerType = 'exe'
    $url = ''
    $checksum = 'CE9E09327357E6A581028F326CA78E7E'
    Write-Verbose "Setting static package variables."
    $checksumType = 'md5'
    $silentArgs = ''
    $validExitCodes = @(0)
    $reg = Get-ItemProperty -Path 'HKCU:\Software\Microsoft\Windows\CurrentVersion\Uninstall\*' `
                            -ErrorAction:SilentlyContinue `
           | Where-Object {$_.DisplayName -like $packageName}
    $installedVersion = [System.Version]$reg.DisplayVersion
    if ($reg) {
      Write-Verbose "GitHub was found in registry, comparing versions."
      if ($installedVersion -ge $packageVersion) {  
        Write-Host "GitHub $packageVersion or newer is already installed."
      } else {
        Write-Warning "Restart GitHub to upgrade."
        Write-Debug ""
    else {
      Write-Verbose "Installing GitHub."
      Write-Debug "Using AutoHotkey to silence ClickOnce framework dialog boxes."
      Write-Debug "Note some popups are minimized to taskbar."
      $scriptPath = $(Split-Path -parent $MyInvocation.MyCommand.Definition)
      $ahkExe = 'AutoHotKey'
      $ahkFile = Join-Path $scriptPath "$($packageName)Install.ahk"
      $ahkProc = Start-Process -FilePath $ahkExe `
                               -ArgumentList $ahkFile `
      $ahkId = $ahkProc.Id
      Write-Debug "$ahkExe start time:`t$($ahkProc.StartTime.ToShortTimeString())"
      Write-Debug "Process ID:`t$ahkId"
      Write-Debug "$Env:ChocolateyInstall\helpers\functions"
      Install-ChocolateyPackage -PackageName "$packageName" `
                                -FileType "$installerType" `
                                -Url "$url" `
                                -SilentArgs "$silentArgs" `
                                -ValidExitCodes $validExitCodes `
                                -Checksum "$checksum" `
                                -ChecksumType "$checksumType"
      Write-Host @"
      Microsoft`'s ClickOnce framework is downloading and extracting the ~110 MB install files.
      This may take several minutes or longer. Please wait...
      Write-Debug "MS ClickOnce programs install outside of chocolatey control so make choco wait."
      $ahkChild = Get-WmiObject -Class Win32_Process -Filter "ParentProcessID=$ahkId"
      $ahkId = $ahkChild.ProcessId
      Write-Debug "AHK child process ID:`t$ahkId"
      if ($ahkChild.HasExited) { 
        Write-Warning "$ahkExe process was not found running. Please verify $packageName was installed."
        Write-Warning "If there was an issue, you may need to append `"--force`" to choco command."
      } else {
        Write-Verbose "`"$ahkFile`" is waiting for windows to pounce on. This may take several minutes..."
        Wait-Process -Id $ahkId

Virus Scan Results

In cases where actual malware is found, the packages are subject to removal. Software sometimes has false positives. Moderators do not necessarily validate the safety of the underlying software, only that a package retrieves software from the official distribution point and/or validate embedded software against official distribution point (where distribution rights allow redistribution).

Chocolatey Pro provides runtime protection from possible malware.


Package Maintainer(s)

Software Author(s)

  • GitHub Inc


© 2012 GitHub Inc


Release Notes


Install locations:
  • $Env:LocalAppData\GitHub
  • $Env:AppData\GitHub


  • Automatically built and uploaded by dtgm

Version History

Version Downloads Last updated Status
Show More

Discussion for the GitHub Desktop Package

Ground rules:

  • This discussion is only about GitHub Desktop and the GitHub Desktop package. If you have feedback for Chocolatey, please contact the google group.
  • This discussion will carry over multiple versions. If you have a comment about a particular version, please note that in your comments.
  • The maintainers of this Chocolatey Package will be notified about new comments that are posted to this Disqus thread, however, it is NOT a guarantee that you will get a response. If you do not hear back from the maintainers after posting a message below, please follow up by using the link on the left side of this page or follow this link to contact maintainers. If you still hear nothing back, please follow the package triage process.
  • Tell us what you love about the package or GitHub Desktop, or tell us what needs improvement.
  • Share your experiences with the package, or extra configuration or gotchas that you've found.
  • If you use a url, the comment will be flagged for moderation until you've been whitelisted. Disqus moderated comments are approved on a weekly schedule if not sooner. It could take between 1-5 days for your comment to show up.

comments powered by Disqus uses cookies to enhance the user experience of the site.