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
add
andcommit
commands
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.html
file. - 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 status
once again to see the difference between unstaged work in step 2 and stage work now. - Run
git commit -m "Created index.html"
. - Add a
h1
header 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 main
to push your work to your repository on github. Refresh the page and you should now see yourindex.html
file 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