I found this could be done from watching a couple tutorial videos.
After a little research I found this code on this on Martin Valasek’s Blog. I did add ‘export’ to the variable. This means that it is available for any process you run from the shell process. Not doing so will mean the variable’s scope is restricted to the current process.
This is the code that you will need to add:
Once you have added it, you can restart your terminal and you should see the branch appear in any directory that you have run a “git init” on.