cd nonemptydir
git init
git remote add origin https:path/to/the/repository.git
git pull origin master --allow-unrelated-histories
stree . // To view the repo
git add -A
git commit -m 'first commit'
git push -u origin master