Using Git In Your Workflow With GitLab

Command line instructions

If you already have files you can push them using command line instructions below.

First, ssh into vagrant and use git commands insite ubuntu virtual machine.

Git global setup

git config --global user.name "Your Name"
git config --global user.email "[email protected]"

Create a new repository

git clone https://gitlab.com/username/repositoryname.git
cd chrispstreet
touch README.md
git add README.md
git commit -m "add README"
git push -u origin master

Existing folder

cd existing_folder
git init
git remote add origin https://gitlab.com/username/repositoryname.git
git add .
git commit
git push -u origin master

Existing Git repository

cd existing_repo
git remote add origin https://gitlab.com/username/repositoryname.git
git push -u origin --all
git push -u origin --tags

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.