I created a blank repo in github. It gets named as master.
In my local machine I did a git init and git clone of this repo.
Now when I do git branch -r
I see
origin/HEAD -> origin/master
origin/master
From reading numerous articles and post my understanding is the following:
origin/HEAD -> origin/master
In above line origin/HEAD
means currently checkout branch and -> origin/master
means that it is pointed to master branch in remote (origin/ meaning remote)
However I think I might be thinking wrong, since I also read anything with origin/
to it represents remote since origin/
means remote.
So what is going on here, I am lost :(
Also why is there a second line saying origin/master
again?
I read so many many posts and answers in SO and other sites but I am unable to make sense of this. Can any git gurus help me out here?