Startup warning
Hi!
I've installed the latest version of cmder (1.2.9) and now I'm getting this warning message:
WARNING: posh-git requires Git 1.7.2 or better. You have .
If I start the PowerShell the posh-git works OK (no error message), but in cmder I don't get the nicely formatted status in the git directory as in PowerShell.
Running the git --version command in cmder outputs the following: git version 2.7.0.windows.1
What am I missing?
Where have you installed cmder?
C:\cmder
And the posh-git module is here: C:\Users\yce\Documents\WindowsPowerShell\Modules\posh-git
Try putting it on your desktop/user dir, permissions can mess things up
It's still the same, even when I run the cmder as administrator.
I have the exact same problem on Windows 7, PowerShell 4.
Run this: (git --version) -match '(?<ver>\d+(?:\.\d+)+)'
I've taken it directly from the posh-git checkversion script.
Does it return True?
If so you may have an older version of posh-git already installed, try reinstalling it with:
Update-Module posh-git
If False let me know what git --version returns.
It returns True.
Updating gives me this:
λ Update-Module posh-git
Module posh-git was successfully updated.
WARNING: posh-git requires Git 1.7.2 or better. You have .
So no luck :-(
Also ran a Get-PsGetModuleInfo Posh-git that gave me this:
Title : posh-git
ModuleName : posh-git
Id : posh-git
Description : A set of PowerShell scripts which provide Git/PowerShell integration
Updated : 20-12-2011 10:16:10
Type : ZIP
Verb : GET
ModuleUrl : https://github.com/dahlbyk/posh-git/zipball/master/
DownloadUrl : https://github.com/dahlbyk/posh-git/zipball/master/
NoPostInstallHook : False
PostInstallHook :
PostUpdateHook : none
After I've reinstalled windows the problem has gone :)
Bit of an extreme fix but ok. Sounded like the path git was found at wasn't the version either your or cmder were expecting.