When I work in a git repository directory that has many branches, I want to know which branch I am currently in on my shell prompt. Below is the sa...
For further actions, you may consider blocking this person and/or reporting abuse
I want to add a * if there are not staged file changes and a + if there are staged file changes. I used to have that on my old computer and want to do on my new one. Do you have any idea on how I can do it?
Thanks!
Maybe it help you, add these lines to .bashrc :
Thanks
Awesome article. One gotcha though, If I make a new branch from the terminal it doesn't immediately reflect the changes. I have to open a new terminal or run
source ~/.bashrc
againThanks for the comment, yes yes you are right. I update also the article.
Awesome!
Thank you!
Thanks, man! :)
I am adding at the end of the file the git branch function. and how do I get out of the file ~/.bashrc, to continue the tutorial and write the next code on shell prompt?
How to change color for git branch name??? Please! defalut color is white, i wanna change color.
I think on the article already explained :)
It works for me. Thank you!
How to change branch name to other color? (for example: red,purple)
Hi Chien, thanks for reading my article, for changing to other color please refer to color code, for example in this link misc.flogisoft.com/bash/tip_colors... or this shellhacks.com/bash-colors/
Awesome ! Thank you for this nice article !