Knowing how to check which branch I am on git is one of the first skills every developer should master when working with version control. Still, whether you are collaborating on a team project, fixing a production bug, or experimenting with a new feature, being aware of your current branch prevents accidental commits to the wrong line of development. Git makes it easy to track branches, but the method you use depends on whether you prefer the command line, a graphical user interface, or your integrated development environment.
Easier said than done, but still worth knowing.