Fork the following repo…
Solution
-
Navigate to https://github.com/burkeholland/i-love-lamp
Clone the repo that you forked using VS Code
Solution
The most common workflow for Github in VS Code, is to make changes to a file, stage those chages, commit them and then push to the upstream repository.
Change the description meta tag in the index.html file. Stage the changes and then commit them to your repository.
Solution
-
Modify the description metatag in the
index.htmlfile -
Notice the blue gutter mark that VS Code uses to denote a pending change

-
Click on the blue rectangle and expand the change. Notice that you can undo the change directly from this view
-
Open the Git sidebar explorer (Ctrl / Cmd + Shift + G)
-
Add a message to the commit box
Create a new branch using VS Code, make a change to the description meta tag in the index.html file and commit those to the new branch.
Change the "description" metatag in the master branch and then merge in the "new_branch". Delete the "new_branch".
Solution
-
Switch back to the "master" branch using the branch switcher in the status bar
-
Change both the "description" and "og:description" meta tags to "I love lamp"
-
Stage the changes
-
Commit the changes
-
Open the Command Palette (Ctrl / Cmd + Shift + P)
-
Type "merge"
-
VS Code will warn that there are merge conflicts
-
View the merge conflicts on the
index.htmlfile -
Commit the index file
-
Push to the upstream repository










