Skip to content

git, display the current branch #81

Answered by isc-tleavitt
antyang26 asked this question in Q&A
Discussion options

You must be logged in to vote

@antyang26, I think one possible issue is the use of single quotes (rather than double quotes) on the export PS1... line at the end. If changing that doesn't fix it, I'd try another solution like https://coderwall.com/p/fasnya/add-git-branch-name-to-bash-prompt .

Also, generally, there are probably better places than this to get answers to generic git questions.

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by isc-tleavitt
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
invalid This doesn't seem right
2 participants