
If you are using an existing Terminal session, don't forget to make the changes take effect by sourcing the file with the command source ~/.bash_profile. You can click the video link in each section for a video walkthrough or watch the video playlist now. This Guide introduces using Git with Terminal. Git stores your files like a stream of snapshots, allowing you and other collaborators to make changes to projects and keep everything in sync. When you switch branches the prompt will update accordingly. Git is an essential tool in the developers toolkit. Now when you change to a directory that is within a Git repository, the prompt will be supplemented with the name of the current branch.
The \ in \$(parse_git_branch) is important to ensure the function is called each time the prompt is displayed without it, the displayed branch name would not be updated when, for example, checking out a different branch or moving in and out of a Git repository directory.If you prefer another color check online for a reference on valid values.


