This lab introduces you to how developers use git in their normal workflows.
- Boilerplate Generation: Use shortcuts to generate HTML boilerplate.
- Review Basic HTML Tags: Insert header tags
- Practice Basic Git Commands: Commit your work with the
addandcommitcommands
Should you need guidance on how to fork, open, edit, and maintain your codespaces, please use the link below by right clicking and opening in a new tab.
Attention: When you complete a task, put an x in the middle of the brackets to mark it off your ToDo list.
- Create an
index.htmlfile. - In line 1, type an exclamation point, wait to see the prompt, then hit
enter. Rungit status. Observe the output. - Stage your work with
git add .Rungit statusonce again to see the difference between unstaged work in step 2 and stage work now. - Run
git commit -m "Created index.html". - Add a
h1header with the text "Hello World". - run
git add .to stage the work, and the commit it usinggit commit -m "Added main header". - run
git push origin mainto push your work to your repository on github. Refresh the page and you should now see yourindex.htmlfile with your additions on the page.
π Only use this as a reference π
πΎ Not something to copy and paste πΎ
Note: This lab references a solution file located here