Convert existing non-empty directory into a Git working directory and push files to a remote repository

Given you’ve set up a git daemon on <url> and an empty repository:

Source: stackoverflow.com. Who else?