User Tools

Site Tools


software:git

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Next revision
Previous revision
software:git [2018/09/10 16:21]
127.0.0.1 external edit
software:git [2024/02/05 10:18] (current)
solar [git config]
Line 8: Line 8:
 GIT_PROMPT_START="_LAST_COMMAND_INDICATOR_ ${debian_chroot:+($debian_chroot)}\[\033[01;32m\]\u@\h\[\033[01;34m\] \w\[\033[00m\]" GIT_PROMPT_START="_LAST_COMMAND_INDICATOR_ ${debian_chroot:+($debian_chroot)}\[\033[01;32m\]\u@\h\[\033[01;34m\] \w\[\033[00m\]"
 GIT_PROMPT_END=" $ " GIT_PROMPT_END=" $ "
 +source ~/.bash-git-prompt/gitprompt.sh
 +</file>
 +
 +===== MagicMonty's Bash prompt, Cygwin flavor =====
 +
 +The same as above, just mimicking the Cygwin default prompt:
 +
 +<file>
 +GIT_PROMPT_START="\n_LAST_COMMAND_INDICATOR_ \[\e]0;\w\a\]\[\e[32m\]\u@\h \[\e[33m\]\w\[\e[0m\]"
 +GIT_PROMPT_END=" \n$ "
 source ~/.bash-git-prompt/gitprompt.sh source ~/.bash-git-prompt/gitprompt.sh
 </file> </file>
Line 69: Line 79:
  
  
 +==== git config ====
 +
 +<file>
 +git config --global pretty.gim "%C(blue)%ar%x09%C(yellow)%h%x09%C(cyan)%aN%x09%C(reset)%s%x09%C(auto)%d"
 +git config --global format.pretty gim
 +</file>
  
software/git.1536589296.txt.gz ยท Last modified: 2018/09/10 16:21 by 127.0.0.1