I have initialized a new remote repository using gitlab website, and am trying to push an existing local repo into it via the provided instructions.
$ git init
$ git remote add origin [url]
$ git add .
$ git commit -m "initial commit"
$ git push -u origin master
When I check the status of the remote repo, it appears that I am headless.
$ git checkout origin/master
Note: checking out 'origin/master'.
You are in 'detached HEAD' state. You can look around, make experimental
changes and commit them, and you can discard any commits you make in this
state without impacting any branches by performing another checkout.
Conversely, my local master appears fine.
$ git checkout master
Switched to branch 'master'
Your branch is up to date with 'origin/master'.
I want to stop running around headless (remotely). How do I fix this?
Thanks!