Learn Git and Github: Git merge II

When I type the command (‘git branch’) in the bash, I see only one branch that is master, why don’t I see origin/master as a second branch when I am trying to merge both of them?


1 Like

I am having the same issue, were you able to get this resolved?

When running the git branch command there are several options that can be selected to define what branches to view. The three options that pertain to this are -l, -r, -a. -l is the default option and if you don’t give any arguments then this is chosen automatically. -r lists the remote branches instead of the local branches. -a lists both local and remote branches. In this scenario you would want to run either git branch -r or git branch -a in order to verify the name of the origin branch.