On my terminal, it either has
username@username ~/release[master=]
or
username@username ~/release[master $=]
What's the difference?
If this is using the contrib/completion/git-prompt.sh
, then:
$
" means git stash
is not empty (you have content stashed, and $GIT_PS1_SHOWSTASHSTATE
is defined) =
" means git remote -v
is not empty (you have a remote defined) and your branch is equals to its remote tracking branch (no commits ahead or behind), and $GIT_PS1_SHOWUPSTREAM
is set to verbose
.
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.