Questions tagged [posh-git]

A PowerShell environment for Git, providing prompt status, tab expansion, and helpful functions.

posh-git is PowerShell module that provides support for Git similar to what is provided by default with Git Bash. Details at https://github.com/dahlbyk/posh-git

83 questions
0
votes
1 answer

Changing colours at posh-git/powershell prompt

I can not work out how to change the -b flag and the quoted string to something more readable. I have tried changing git settings, posh-git settings, and powershell settings. This stack answer was my last hope but I couldn't find which token-flag i…
gingerbreadboy
  • 7,386
  • 5
  • 36
  • 62
0
votes
2 answers

posh git not showing status flags

I got a problem with posh git not showing the status flags. This is what it looks like: As you can see there are changes and my branch is behind the origin, but still the prompt only displays the current branch in Cyan. While it is ahead (Green and…
quadroid
  • 8,444
  • 6
  • 49
  • 82
0
votes
1 answer

The term 'Install-Module' is not recognized as the name of a cmdlet, function, script file, or operable program

Installing posh-git - see here https://github.com/dahlbyk/posh-git If I've just installed PsGet installed then running: Install-Module posh-git works fine. But if I close and re-launch Powershell then I get: The term 'Install-Module' is not…
Snowcrash
  • 80,579
  • 89
  • 266
  • 376
0
votes
1 answer

How can I check for repo status using posh-git in a PowerShell function?

We have a psake orchestration that prompts a user with the following message before calling 'git clean -xdf': About to delete all untracked files. Press 'Y' to continue or any other key to cancel. We'd like to show this prompt ONLY if there are…
bopapa_1979
  • 8,949
  • 10
  • 51
  • 76
0
votes
1 answer

posh-git colors not set for some local repos

I have two local repos for which I use posh-git, and in one of them, the branch colors show correctly according to the posh-git readme: Cyan means the branch matches its remote Green means the branch is ahead of its remote (green light to push) …
Jerad Rose
  • 15,235
  • 18
  • 82
  • 153
0
votes
2 answers

git checkout . not working on R.java

I am working on an android project through Github. Now, when I pull any commit and do any unwanted changes in working directory, I use git checkout . to revert back. This works fine with all other files but shows R.java still as modified. How to…
Seekay
  • 5
  • 3
0
votes
1 answer

Colors of fonts in package manager console with posh-git?

I'm trying to get the package manager console to look exactly like a standalone powershell console with posh-git. The only thing i've been unable to replicate is the red font used for files. Here is my package manager console: and here is my…
coding4fun
  • 8,038
  • 13
  • 58
  • 85
-1
votes
1 answer

What do the numbers [master +2 ~0 -0 !] beside the branch name mean?

I have just started learning git. I don't understand what these numbers beside master mean.
1 2 3 4 5
6