cd existing_repo git init git remote add origin https://gitlab.com/your_account_name/project_name.git git branch -M main git add . git commit -m "Initial commit" git push -uf origin main