If you need to test/debug changes prior to contributing here, or would otherwise prefer to install posh-git without Start Windows PowerShell 5.x or PowerShell >= v6 ( pwsh).Įxecute one of the following two commands from an elevated PowerShell prompt,ĭepending on whether (A) you've never installed posh-git, or (B) you've already installed a previous version:Īdd-PoshGitToProfile Installing posh-git Manually Posh-git is available on the PowerShell Gallery and can be installed using the built-in PowerShellGet module. Installing posh-git via PowerShellGet on Linux, macOS and Windows If you have Git installed, make sure the path to git is in your PATH environment variable. If git is not recognized as the name of a command, verify that you have Git installed. Git must be installed and available via the PATH environment variable.Ĭheck that git is accessible from PowerShell by executing git -version from PowerShell. If the policy is not set to one of the two required values, run PowerShell as Administrator andĮxecute Set-ExecutionPolicy RemoteSigned -Scope CurrentUser -Confirm. On Windows, script execution policy must be set to either RemoteSigned or Unrestricted.Ĭheck the script execution policy setting by executing Get-ExecutionPolicy. You can get PowerShell Core 6.0 for Windows, Linux or macOS from here.Ĭheck your PowerShell version by executing $PSVersionTable.PSVersion. Windows PowerShell 5.x or PowerShell Core 6.0. Prerequisitesīefore installing posh-git make sure the following prerequisites have been met. These installation instructions, as well as the rest of this README, applies only to version 1.x of posh-git.įor v0.x installation instructions see this README. Avoids breaking changes, maintaining v0.x.All SSH commands removed from posh-git and moved into the new module posh-sshell.Includes breaking changes from v0.x ( roadmap).Supports ANSI escape sequences for color customization.Supports PowerShell Core 6+ on all platforms.Versions posh-git v1.0 Windows (AppVeyor) You can also tab complete remote names andīranch names e.g.: git pull or ma tab completes to git pull origin main. That will tab complete to git checkout and if you keep pressing tab, it willĬycle through other command matches such as cherry and cherry-pick. Posh-git also provides tab completion support for common git commands, branch names, paths and more.įor example, with posh-git, PowerShell can tab complete git commands like checkout by typing git ch and pressing Posh-git is a PowerShell module that integrates Git and PowerShell by providing Git status summary information thatĬan be displayed in the PowerShell prompt, e.g.:
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |