have initialized the git empty repo by mistake code example
Example: git init
cd /path/to/my/codebase
git init
git add .
git commit -m "my comment"
cd /path/to/my/codebase
git init
git add .
git commit -m "my comment"