Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR SHELL

gitlab add remote upstream

# First remove any existing hidden git folder in your project folder
# Initialize project in your folder
git init
# add your gitlab project as your remote origin
git remote add origin https://gitlab.com/your_account_name/project_name.git
# add all files in the folder
git add .
# commit changes
git commit -m "Initial commit"
# push your changes to the master branch
git push origin master
# Files should now be visible if you navigate to the address in your browser
https://gitlab.com/your_account_name/project_name
Source by docs.gitlab.com #
 
PREVIOUS NEXT
Tagged: #gitlab #add #remote #upstream
ADD COMMENT
Topic
Name
7+7 =