powershell git command, using libgitsharp
Switch branches/tags
Nothing to show
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
src
tools
.gitignore
Git-Got.nuspec
default.ps1
readme.md

readme.md

Git-Got

Git-Got is a set of powershell cmdlets and functions that expose functionality from libgit2sharp. Ideally, you load this module into your powershell session and git is in memory, which should make it run faster, which was always one of my chief gripes with git on windows.

Installation

You can use nuget to install Git-Got:

> nuget install Git-Got

Then all you need to do is load the module in your profile script:

> notepad $profile

add the line:

# note: no file extension at the end of the next line
Import-Module path/to/Git-Got

somewhere, save, start a new powershell session, and you're good to go.

Usage

Git-Got definds a bunch of functions to call into libgit2sharp.

> $repo = New-Repository path\to\my\project

# below is not implemented yet
> $repo.Branches | ForEach-Object { $_.Name }

To make it easier to work with on the command line, there are also a couple of higher level wrapper functions, so instead of:

> ....long ass invocation of extension methods in powershell...

you can say:

# below is not implemented yet
> Get-Commits $repo -StartAt sha

Status

This project is still under heavy development (read: just barely started.) If you find a loose floorboard let me know, but don't hurt yourself.