The command prompt in Git Bash displays the current branch name (with other information such as directory name, etc) as given below.
mylogin@SYSNAME MINGW64 ~/path/to/my/repo (master)
$
How can I include the repo user profile email along with the branch name? The email is the user.email of the repo; which can be found using the command git config user.email
.
I would like to have this value git config user.email
in my command prompt along with the branch name as given below.
mylogin@SYSNAME MINGW64 ~/path/to/my/repo (master|myemail@github.com)
$
Please note I have a windows system.