cd #existing_dir git init git remote add origin https://github.com/ #Repo git branch -M main git push -u origin main