git with existing folder

To initialization the project with existing folder
git init
git add .
git commit -m ‘message’
git remote add origin
git push -u origin master
Git refusing to merge unrelated histories on rebase
git pull origin master –allow-unrelated-histories
Python .gitignore file
# Virtualenv
.Python
[Bb]in
[Ii]nclude
[Ll]ib
[Ll]ib64
[Ll]ocal
[Ss]cripts
pyvenv.cfg
.venv
pip-selfcheck.json