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

Disable Git Credential Manager

1.0.0

Package test results are passing.

This package was approved by moderator flcdrg on 3/31/2018.

Disables the Git Credential Manager which is installed as part of the Git package.

To install Disable Git Credential Manager, run the following command from the command line or from PowerShell:

C:\> choco install git-disable-gcm

To upgrade Disable Git Credential Manager, run the following command from the command line or from PowerShell:

C:\> choco upgrade git-disable-gcm

Files

Hide
  • tools\chocolateyInstall.ps1 Show
    $ErrorActionPreference = 'Stop'
    
    $toolsPath = Split-Path $MyInvocation.MyCommand.Definition
    . $toolsPath\helpers.ps1
    
    $gitExecutable = Get-GitExecutable
    & $gitExecutable config --system --unset credential.helper
    
  • tools\chocolateyUninstall.ps1 Show
    $ErrorActionPreference = 'Stop'
    
    $toolsPath = Split-Path $MyInvocation.MyCommand.Definition
    . $toolsPath\helpers.ps1
    
    $gitExecutable = Get-GitExecutable
    & $gitExecutable config --system credential.helper manager
    
  • tools\helpers.ps1 Show
    function Get-GitExecutable()
    {
      $gitRegistryPath = $(
        'HKLM:\SOFTWARE\GitForWindows'
      )
    
      if (Test-Path $gitRegistryPath) {
        # Use Git executable based on registry entry for Git For Windows.
        $gitInstallPath = (
          Get-ItemProperty -Path $gitRegistryPath 
        ).InstallPath
        $gitExecutable = Join-Path(Join-Path $gitInstallPath "bin") "git.exe"
      }
      else {
        # If no entry for Git was found in the registry, try to find git executable on the path.
        Update-SessionEnvironment
    
        $gitExecutable = "git"
      }
    
      Write-Host "Using Git from '$gitExecutable'"
      return $gitExecutable
    }
    

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.

Dependencies

    • git (≥ 2.7.3)

Package Maintainer(s)

Software Author(s)

  • chocolatey

Tags

Version History

Version Downloads Last updated Status

Discussion for the Disable Git Credential Manager Package

Ground rules:

  • This discussion is only about Disable Git Credential Manager and the Disable Git Credential Manager 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 Disable Git Credential Manager, 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
Chocolatey.org uses cookies to enhance the user experience of the site.
Ok