|
|
|
|
@ -60,7 +60,7 @@ The prompt may look like the following: |
|
|
|
|
|
|
|
|
|
By default, the general appearance of the prompt is:: |
|
|
|
|
|
|
|
|
|
(<branch> <branch tracking>|<local status>) |
|
|
|
|
(<branch> <upstream branch> <branch tracking>|<local status>) |
|
|
|
|
|
|
|
|
|
The symbols are as follows: |
|
|
|
|
|
|
|
|
|
@ -71,6 +71,10 @@ The symbols are as follows: |
|
|
|
|
- ``✚n``: there are ``n`` changed but *unstaged* files |
|
|
|
|
- ``…n``: there are ``n`` untracked files |
|
|
|
|
- ``⚑n``: there are ``n`` stash entries |
|
|
|
|
- Upstream branch |
|
|
|
|
- Shows the remote tracking branch |
|
|
|
|
- Disabled by default |
|
|
|
|
- Enable by setting GIT_PROMPT_SHOW_UPSTREAM=1 |
|
|
|
|
- Branch Tracking Symbols |
|
|
|
|
- ``↑n``: ahead of remote by ``n`` commits |
|
|
|
|
- ``↓n``: behind remote by ``n`` commits |
|
|
|
|
@ -119,6 +123,8 @@ git clone https://github.com/magicmonty/bash-git-prompt.git .bash-git-prompt |
|
|
|
|
|
|
|
|
|
# GIT_PROMPT_FETCH_REMOTE_STATUS=0 # uncomment to avoid fetching remote status |
|
|
|
|
|
|
|
|
|
# GIT_PROMPT_SHOW_UPSTREAM=1 # uncomment to show upstream tracking branch |
|
|
|
|
|
|
|
|
|
# GIT_PROMPT_START=... # uncomment for custom prompt start sequence |
|
|
|
|
# GIT_PROMPT_END=... # uncomment for custom prompt end sequence |
|
|
|
|
|
|
|
|
|
|