Skip to content

GitHub Git Bash on Windows 7

Albert Huang edited this page Mar 19, 2017 · 1 revision

Introduction

If you start Git Bash from GitHub recently, you might have encountered this strange error:

Windows PowerShell
Copyright (C) 2009 Microsoft Corporation. All rights reserved.

WARNING: posh-git support for PowerShell 2.0 is deprecated; you have version 2.0.
To download version 5.0, please visit https://www.microsoft.com/en-us/download/details.aspx?id=50395
For more information and to discuss this, please visit https://github.com/dahlbyk/posh-git/issues/163
To suppress this warning, change your profile to include 'Import-Module posh-git -Args $true'.

As the warning suggests, everything is wonky thanks to PS 2.0 deprecation. PS 2.0 is the default version of Powershell on Windows 7, and doesn't really get an upgrade unless you install it yourself.

Solution

Install the latest Powershell to get things back up again: Powershell 5.1

Download the ZIP that corresponds to your Windows version (likely Windows 7 if you're reading this guide), and then install the update. You may also need to install .NET Framework 4.5.x - you can do that here.