Git branching: master vs. origin/master vs. remotes/origin/master

I think I’m on the right track to understand the basic concepts of git.

I’ve already set up and cloned a remote repository. I also created a server side empty repository, and linked my local repository to it.

My problem is that I don’t understand the difference between:

  • origin/master vs. remotes/origin/master

As far as I have understood, master is a local branch, and remotes/origin/master is a remote one.

But what exactly is origin/master?

7 Answers
7

Leave a Comment