Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Git PowerShell Cmdlets returning git info as objects

Tags:

git

powershell

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.

like image 669
user826840 Avatar asked Mar 03 '13 17:03

user826840


People also ask

How do I know if Posh is installed on git?

Check that git is accessible from PowerShell by executing git --version from PowerShell. If git is not recognized as the name of a command, verify that you have Git installed. If not, install Git from https://git-scm.com. If you have Git installed, make sure the path to git is in your PATH environment variable.

Does posh-git work with git bash?

Git Bash is a package that installs Bash, some common bash utilities, and Git on a Windows operating system. However, it is recommended to use Git with Posh-Git. It's a PowerShell environment for Git. It's an open source project hosted on GitHub.


1 Answers

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.

like image 70
manojlds Avatar answered Oct 06 '22 09:10

manojlds