git-aware-prompt icon indicating copy to clipboard operation
git-aware-prompt copied to clipboard

Display current Git branch name in your terminal prompt when in a Git working directory.

Results 37 git-aware-prompt issues
Sort by recently updated
recently updated
newest added

I added this code to get tag names in case you checkout a specific tag. Instead of just writing detached\* as branch name. You might want to include it the...

If I resize my terminal window so that the current path I'm on is split between two lines, then typing causes strange behavior. Example: rr@Macintosh ~/dropbox/Source_Code/dev_bootcamp/phase1/week1/sudoku-2-guessing-challenge (rickr)*$ l     ...

With a small addition to `main.sh` the scrip dir can be detected automatically, so that the user does not need to manually define the `GITAWAREPROMPT` env var.

I often have a lot, so I added the ability to set a variable `GIT_PROMPT_IGNORE_UNTRACKED` to have the "dirty" flag _not_ be set if they are the only changes.

Git shell on windows shows file status as well with the branch info. We could easily add that by applying parsing to the git status call where we check for...

enhancement

`find_git_dir()` does not play nicely inside of $GIT_DIR, hence the error message checking. A possible solution would be to resolve the proper work tree directory. Not sure how to do...

Not sure where I found this, but this has a few nice additions - dirty or not ? - unpushed/unpulled changes - exit status of last command https://github.com/grosser/dotfiles/blob/master/bash/git_prompt.sh