When I used for the first time GitHub for Windows I was really in love with it but, if you need to use git deeply, you have to continue to use the command version.
Moreover the GitHub client shown me for the first time an interesting feature in the Powershell called Posh-Git.
What Posh-Git gives you is really simple:
“The prompt within Git repositories can show the current branch and the state of files (additions, modifications, deletions) within”
And below a screenshot
GitHub for Windows deploys Git-Posh for you but it doesn’t install it. The same happens for Git (it uses a portable version of git).
My problem is borne when I saw the speech by Damian Edwards about SignalR. In that speech he uses a cool Powershell console that supports Tabs, Trasparency and other cool stuff, so I told to myself : “I need it … I want it”.
After a tweet Damian told me that the tool is Console2 and, Scott Hanselman, wrote a cool post here. The problem to use an external tool instead of Powershell by GitHub for Windows was Git-Posh. In fact with Console2 it is missing.
If you like it there are few simple steps to enable it in Console2:
- Clone the repository “git clone https://github.com/dahlbyk/posh-git.git”;
- Run Powershell as Administrator;
- Run “Set-ExecutionPolicy unrestricted”;
- Go to Posh-Git cloned repository;
- Run “.install.ps1”;
That’s all and the result is this :
Now it is perfect!