Sometimes you need to start up your project. I never found a simple guide on how to push to a bare git repository so I’m writing this down as a note to myself.

git init
touch .gitignore
git add .gitignore
git commit -m "Initial commit"
git remote add origin /path/to/bare/repo
git push origin master

This will push your new changes to you external bare git repository