Hi@akhtar,
If you already have a .git/ folder in your repository git init doesn't initialize. So, follow the below given steps.
$ rm -rf .git/
$ git init
git remote add origin url
git commit -m “Commit message”
git push -f origin master
Hope this will help you.