Super User is a question and answer site for computer enthusiasts and power users. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I’ve been battling with Git on Windows for over a week now, trying to make it usable. I heard about Posh-Git for PowerShell, but I can’t seem to find any information about what it actually does.

Does Posh-Git replace the standard git command-line tool and syntax with alternatives that are reliable, intuitive, unlikely to change in a future version and display nicely on the screen?

Or does Posh-Git just modify the prompt?

share|improve this question

migrated from stackoverflow.com Dec 22 '12 at 6:20

This question came from our site for professional and enthusiast programmers.

    
Link to posh-git homepage: posh-git on GitHub – Rory O'Kane Dec 21 '12 at 19:58
    
The links are useful, but I've read them and the source code which is when it dawned on me that maybe Posh-Git doesn't really do anything. – Luke Puplett Dec 21 '12 at 20:14
up vote 14 down vote accepted

From what I can tell from reading the posh-git README and the blog post “Better Git with PowerShell”, posh-git does only two things:

  • modifies the prompt – saves you having to run git status by putting some of that info in the prompt
  • provides tab-completion – lets you type commands that use git more easily by pressing Tab

Thus, it does not change the git command-line tool or its syntax.

share|improve this answer
    
Can you vote this clear answer up if you use Posh-Git as of Dec 2012 and can confirm this is the case. – Luke Puplett Dec 21 '12 at 20:13
    
Rory is correct - posh-git does not change git itself, but rather just aims to give a better experience in PowerShell. – dahlbyk Jan 16 '13 at 3:19
    
yeah but if I just want to do a git pull from powershell I don't see the need for it – John Demetriou Mar 24 at 12:09

Posh-Git is useful for shell intergration.

You can't incooperate shell scripts on a windows box without this tool.


In my experience there are some subtle differences in conventions like backslashes used in path names.

share|improve this answer

Why not just take a look at the source codes to see? dahlbyk / posh-git.

There's also a nice introduction to it Better Git with PowerShell.

share|improve this answer

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .