I want to work with Git from PowerShell from cmder.
Cmder displays the following error:
There is no git support, install posh-git using "Install-Module posh-git" and restart cmder
If I run Install-Module posh-git, then cmder displays the following error:
Install-Module posh-git
Installation Module & lt; & lt; & lt; & lt; gorgeous bastardCategoryInfo: ObjectNotFound: (Install-Module: String) [], CommandNotFoundExceptionFullyQualifiedErrorId: CommandNotFoundException
cmder/vendor/git-for-windows
git , , .
?
CommandNotFoundException , Install-Module Powershell 3.0 PSGet. .
Install-Module
PSGet
, posh-git.psm1 - $env:PSModulePath. PowerShell Import-Module posh-git. .
posh-git.psm1
$env:PSModulePath
Import-Module posh-git
, . Posh-Git .
cmder (\ vendor\profile.ps1) "checkGit".
function checkGit($Path) { #if (Test-Path -Path (Join-Path $Path '.git')) { # $gitLoaded = Import-Git $gitLoaded # Write-VcsStatus # return #}
. , . , .
:
, cmder:
\config\user_profile.ps1 ( Chocolatey: c:\tools\cmdermini\config\user_profile.ps1):
function checkGit() {}