Answers for "how to push existing git repository to gitlab"

1

how to push code to gitlab

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
Posted by: Guest on December-16-2021
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
Posted by: Guest on October-23-2020

Code answers related to "how to push existing git repository to gitlab"

Code answers related to "Shell/Bash"

Browse Popular Code Answers by Language