Add tab completion for Git branches in Powershell

For that to be possible, a git provider for PowerShell would need to exist.

After a quick search, something similar apparently exists, the bizarre but aptly named posh-git:

http://github.com/dahlbyk/posh-git

A set of PowerShell scripts which
provide Git/PowerShell integration

  • Prompt for Git repositories: The prompt within Git repositories can
    show the current branch and the state
    of files (additions, modifications,
    deletions) within.
  • Tab completion: Provides tab completion for common commands when
    using git. E.g. git ch<tab> –>
    git checkout

Usage

See profile.example.ps1 as to how you
can integrate the tab completion
and/or git prompt into your own
profile. You can also choose whether
advanced git commands are shown in the
tab expansion or only simple/common
commands. Default is simple.

Leave a Comment

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)