Git-Achievements in PowerShell

Reading through Jason’s post on using Git-Achievements with msysGit, I couldn’t help but get it working with PowerShell. The result is a single PowerShell script added to my Git-Achievements repository, tagged here on the off chance I decided to upload my achievements.

To install posh-git-achievements…

  1. Fork my repository on GitHub (or if you have an existing repository, add me as a remote and pull)
  2. Clone your fork of the repository (into C:Gitgit-achievements, for this example)
  3. Open your PowerShell profile and add the following:
    Set-Alias git C:Gitgit-achievementsgit-achievements.ps1
  4. “dot source” your profile to reload it in your current session (or just start a new session):
    . $PROFILE
  5. Check the install:
    git achievements --help

If all goes according to plan, this should unlock your first achievement.

Note that this will pass every git call through a few
extra layers, including calls made for the posh-git prompt. But if you
can tolerate the performance hit, it’s a rather fun way to expand your
working knowledge of Git. Enjoy!

Related Articles:

About Keith Dahlby

I'm a .NET developer, Git enthusiast and language geek from Cedar Rapids, IA. I work as a software guru at J&P Cycles and studied Human-Computer Interaction at Iowa State University.
This entry was posted in git, git-achievements, powershell. Bookmark the permalink. Follow any comments here with the RSS feed for this post.