I want to create a git repo on my server to update my website after pushing. The first step of all tutorials(such as this: http://developertheory.com/how-to-auto-deploy-apps-after-git-push/) I found, is this command:
git init --bare
In the next steps I should enter the following commands:
git config core.worktree /path/to/git/deploy
git config core.bare false
git config receive.denycurrentbranch ignore
the second command (git config core.bare false
) set the repo to non-bare. Why do we init the repo as bare and then set it to non-bare?!