Here's what I usually do:
$ git add . -Av
$ git commit -m "I want this to be master"
but when I try to push to remote, "everything is up-to-date" and the latest commit isn't master.
$ git branch
* (HEAD detached from f0efe1a)
added_mongodb_auth
master
serviceworkers_branch
How can I make the latest commit the Master?