Struggling to understand how git is coordinating different branches