Git help

From Phobos Wiki
Revision as of 07:47, 22 December 2011 by Roland (talk | contribs) (Uus lehekülg: '== Git on linux == === show current branch in terminal === <syntaxhighlight lang="bash"> PS1='\[\033[01;32m\]\h\[\033[01;34m\] \w\[\033[31m\]$(__git_ps1 " (%s)") \[\033[01;34m\]...')
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

Git on linux

show current branch in terminal

PS1='\[\033[01;32m\]\h\[\033[01;34m\] \w\[\033[31m\]$(__git_ps1 " (%s)") \[\033[01;34m\]$\[\033[00m\] '