- Create GitHub account
- Install Git
- Install VS Code Stable
- Install GitHub Pull Requests and Issues VS Code extension
- Receive invitation to be added as collaborator of a repository
- Open browser
- Open
https://github.com/username/repo-name
- Accept invitation to be added as collaborator of the repository
- Open VS Code
- Open Command Palette
Ctrl+Shift+P
- Type
git clone
and hitenter
- Select
Clone from GitHub
- Type
username/repository-name
-
Click
Allow
ifThe extension 'GitHub' wants to sign in using GitHub.
- Sign in with your GitHub account
- Select location to store repository
- You have successfully cloned an online repository to local desktop!



- Open VS Code
- Select
File
on top left corner - Select
Open Folder...
- Select location of stored repository

- Make sure you are in branch
main
on bottom left corner -
Click Sync Branch button on right side of
main
(cycle arrow icon) - Click branch
main
on bottom left corner - Select
Create new branch...
- Type
feature/feature-name
and hitenter
-
Click Publish Branch button on bottom left corner and right side of
feature/feature-name
(cloud arrow icon) -
Click
Close
button ifWould you like to create a Pull Request for branch 'feature/feature-name?'
pops up - You have successfully created a feature branch!






-
Make sure you are in branch
feature/feature-name
on bottom left corner - Make changes (create, edit, delete files)

- Only push feature branch when your task is complete
-
Make sure you are in branch
feature/feature-name
on bottom left corner - Click source control on left sidebar or
Ctrl+Shift+G
-
Hover
Changes
and click+
Stage All Changes button -
Click
Message
input box above/ Commit
button - Type
feat: add feature-name
-
COMMIT_EDITMSG
will open if you skip step 6. CloseCOMMIT_EDITMSG
and do step 6. - Click
/ Commit
button - Click
Sync Changes
button - Click GitHub on left sidebar
-
Hover
PULL REQUESTS
and clickCreate Pull Request
button (plus arrow dot icon) -
Make sure
base
ismain
andmerge
isfeature/feature-name
- Click
Create
- You have successfully requested to push feature branch to main branch!










- Make sure you are in branch
main
on bottom left corner - Open Command Palette
Ctrl+Shift+P
- Type
git delete branch
and hitenter
- Select
feature/feature-name
that has been approved



Congratulations. You are now a GitHub collaborator!