I want to work with git, from the cmder powershell.
Errors
Cmder prints out the following error:
Missing git support, install posh-git with 'Install-Module posh-git' and restart cmder
If I run the Install-Module posh-git
cmder prints out the next error:
- Install-Module <<<< posh-git
- CategoryInfo : ObjectNotFound: (Install-Module:String) [], CommandNotFoundException
- FullyQualifiedErrorId : CommandNotFoundException
Things I have done/tried
- Installed 'Git for Windows'
- Replaced the files in
cmder/vendor/git-for-windows
with the installed files from 'Git for Windows' - Tried solutions from git not properly setup in v1.2 #513 and Path issues on startup #487
- Installed posh-git manually
Problem
My git commands are working, but not showing me the branch I am working on.
So how can I fix this?
Install-Module
requires 3.0 or later. – AgnusagoInstall-Module posh-git
again – NonresistantInstall-Module
requires Powershell 3.0, orPSGet
to be installed. However, the manual install should work. Verify that the fileposh-git.psm1
is located somewhere in$env:PSModulePath
. – Agnusagoinstall.ps1
, if you haven't already. Then runImport-Module posh-git
– Agnusago