Pulling your own repo

Sometimes you lose the directory you were working with in VS Code or maybe you switch computers, the best way to get back to working with your code is as follows. If your using a new PC make sure to generate a ssh key and add it into your account at github under ssh keys

ssh-keygen -t rsa -b 4096 -C "your_email@example.com"
git init
git config --global user.name "username"
git config --global user.email "matt@swiftmedia.ca"
git remote add origin git@gitlab.com:username/projectpath.git
git pull
git checkout -b
git add .
git commit -m "test"

Starting a new project

git init
git config --global user.name "username"
git config --global user.email "matt@swiftmedia.ca"
git remote add origin git@gitlab.com:username/projectpath.git
git checkout -b
git add .
git commit -m "test"