I am very new to macOS, knowing Ubuntu a little bit, and am wondering whether git is pre-installed on macOS or not. Typing
which -a git
results in
git is /usr/bin/git
But when I init a test-repo and checkout a myBranch, the command
git branch
results in a empty line. So is there anything I do forget? I installed Homebrew before checking for git, so maybe this causes some interdependencies?