how to push project to gitlab code example

Example 1: how to add existing project to gitlab

cd existing_folder
git init
git remote add origin url_git
git add .
git commit -m "Initial commit"
git push -u origin master

Example 2: how to push local code to gitlab

## Git push using SSH
git push --set-upstream [email protected]:namespace/nonexistent-project.git master

## Git push using HTTPS
git push --set-upstream https://gitlab.example.com/namespace/nonexistent-project.git master

Example 3: gitlab push existing project commandlie

git config --global user.name "Roka Paudel,Sarmila S."