If there're # untracked files, then a '%' will be shown next to the branch name. # If you would like to see if there're untracked files, then you can # set GIT_PS1_SHOWUNTRACKEDFILES to a nonempty value. If something is stashed, # then a '$' will be shown next to the branch name. # You can also see if currently something is stashed, by setting # GIT_PS1_SHOWSTASHSTATE to a nonempty value. You can configure this per-repository # with the bash.showDirtyState variable, which defaults to true # once GIT_PS1_SHOWDIRTYSTATE is enabled. # In addition, if you set GIT_PS1_SHOWDIRTYSTATE to a nonempty # value, unstaged (*) and staged (+) changes will be shown next # to the branch name.
![email license code g force platinum email license code g force platinum](https://www.idalko.com/wp-content/uploads/2021/01/word-image-46.png)
The %s token will be # the name of the current branch. bashrc: # source ~/.git-completion.sh # 3) Consider changing your PS1 to also show the current branch: # \W$(_git_ps1 " (%s)")]\$ ' # The argument to _git_ps1 will be displayed only if you # are currently in a git repository. git/remotes file names # *) git 'subcommands' # *) tree paths within 'ref:path/to/file' expressions # *) common -long-options # To use these routines: # 1) Copy this file to somewhere (e.g. # The contained completion routines provide support for completing: # *) local and remote branch names # *) local and remote tag names # *).
![email license code g force platinum email license code g force platinum](https://media.sweetwater.com/api/i/q-82__ha-38c370fcf77685b9__hmac-2cac5d3dca78e9b748c316e978f807a09ca46b7c/images/closeup/750-Minimonsta_Detail1.jpg)
# Distributed under the GNU General Public License, version 2.0. Pearce # Conceptually based on gitcompletion (). GitHub - questionmark1122/cnn10: #!bash # bash completion support for core Git.