I needed to set up git for pushing into a non bare repo with a checked-out branch. Here is how I did it: