13

Are there any PowerShell Cmdlets for interfacing with Git? Especially 'git log'. All this regex parsing is numbing by buns. Maybe with Microsoft's recent interest in Git, someone is working on this using libgit2sharp? I'm aware of posh-git, but I don't think it adds any cmdlets for returning git info as objects.

4
  • 2
    I don't know of any, but it should be relatively easy to write your own if you can't find any others. Thanks for the link to libgit2sharp. Commented Mar 3, 2013 at 18:45
  • 4
    I plan on doing exactly that with Pit ( github.com/manojlds/Pit ). Do watch that space and provide your suggestions too :) Commented Mar 4, 2013 at 5:17
  • @manojlds that's great. Is any of that functional at the moment? Commented Mar 4, 2013 at 18:54
  • I started it as a way to manage git repos. But started extending the functionality. For example get-content returns the content of README. Commented Mar 5, 2013 at 13:10

1 Answer 1

2

Pit ( https://github.com/manojlds/pit ) has some basic support for git status and git log. Use the Get-GitStatus and Get-GitLog cmdlets respectively. It is very simple, at very early stages, so would love some suggestions.

Sign up to request clarification or add additional context in comments.

1 Comment

Should Pit work for powershell 5 (or powershell core 6?) it's not working for me.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.