git init git add . //this is what works . means current dir git commit -m "init" git branch -M main git remote add origin <git-repo-link> git push -u origin main