Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR SHELL

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
 
PREVIOUS NEXT
Tagged: #push #code #gitlab
ADD COMMENT
Topic
Name
1+1 =