I'm pretty new to git, but I've been playing around with it on a remote server I set up and I'm pretty sure that I understand the basics.
I just set up gitlab and pushed some of my code to a new project on it. What I did was:
- Get all my code in a directory
- git init
- git add .
- git commit -m "Initial commit"
- git push origin master
Where origin was set up with:
git remote add origin git@1.2.3.4:myproject.git
Now when I do git branch -a I see:
* master
remotes/origin/master
Whereas when I was playing around before, I always saw:
* master
remotes/origin/HEAD -> origin/master
remotes/origin/master
I understand that the head is a pointer the currently checked out branch, so shouldn't it exist on the origin? Why wasn't it created?