VSC GitLab
Visual Studio Code Guide
Adding code you cloned from somewhere to your repository
- Click the Source Code icon in the side bar
- Click on the … in the side bar. (There are two if you can’t follow step 3, try the other one!)
- Select Remote > then Remove Remote. Select the name from the list. (If there is more than one, remove them all one by one)
- Click on the … in the side bar.
- Select Remote > then Add Remote...
- Paste the URL of your repository
- Enter the name
origin
- Click on the … in the side bar.
- Select Push
- Click OK if a message box pops up.
Adding a project you’ve created to your repository
If you have created a new project (rather than having cloned it from somewhere), follow the instructions below.
- Click the Source Code icon in the side bar
- Click the Initialize Repository button
- Click on the … in the side bar.
- Select Remote > then Add Remote...
- Paste the URL of your repository
- Enter the name
origin
- Click on the tick icon in the side bar.
- Enter a commit message
- Press the Sync Changes button.
Uploading changes
After you have made changes to your code you need to commit and push those changes.
- Click the Source Code icon in the side bar
- Click on the tick icon in the side bar.
- Enter a commit message
- Press the Sync Changes button.
Pulling Changes
- Click the Source Code icon in the side bar
- Click on the … in the side bar.
- Select Pull
- Previous
- Next