git remote add origin gitlab code example
Example 1: git add remote
$ git remote add origin https://github.com/user/repo.git
# Set a new remote
$ git remote -v
# Verify new remote
> origin https://github.com/user/repo.git (fetch)
> origin https://github.com/user/repo.git (push)
Example 2: adding remote origin git
git remote add origin <link>
Example 3: 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 4: gitlab push existing project commandlie
git config --global user.name "Roka Paudel,Sarmila S."