Skip to content

Instantly share code, notes, and snippets.

@madsjakob
Forked from mjul/git-status-colours.ps1
Created October 1, 2018 08:28
Show Gist options
  • Select an option

  • Save madsjakob/f1e7bf1817e70ef7f16d7f9c9f42b7c4 to your computer and use it in GitHub Desktop.

Select an option

Save madsjakob/f1e7bf1817e70ef7f16d7f9c9f42b7c4 to your computer and use it in GitHub Desktop.
Git status colour config for PowerShell readability
# `git status` in PowerShell shows untracked and changed files as a dark red that is hard to read on the blue background.
# Change the colors of `git status` so it is easier to read:
git config --global color.status.untracked "bold cyan"
git config --global color.status.changed "bold yellow"
git config --global color.status.unmerged "bold red"
# `git branch -vva` in PowerShell has both a blue and a dark red that is hard to read.
# Make the branch names readable
git config --global color.branch.current "bold yellow"
git config --global color.branch.remote "bold red"
git config --global color.branch.upstream "bold green"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment