3. Putting the project under version control

Creating work files

Let's create a simple Hello, World! web page. This is a common first step when learning a new programming language or framework. It's a good way to get started with Git too. We will learn various Git commands while improving our simple page.

Let's start by creating a file named hello.html. Then, enter the text Hello, World! into the file. You can do that in various ways:

Task

Create a file hello.html that contains the text Hello, World!.

Hint in case you're stuck and see dquote> in the terminal

Q: I typed the command and pressed Enter, but it didn't run. Instead, the terminal shows dquote> and keeps waiting for more input.

A: You've either forgotten to close the matching quotation marks at the end of the argument, or you haven't escaped the ! character. You can press Ctrl + C to cancel the current command and start over. Then, make sure to close the quotes and escape the ! character (on non-Windows systems). See command-line tips and tricks for more info.

Great, we're finally about to add something to our Git repository!

Next step
Wanna try the Story mode?
Take the course as it was meant to be taken: bite-sized progression, focused linear order, gradually unlock Gitopedia entries. Continue with real Git in VS Code/Cursor at any time.
Story mode
FREE
but requires sign-in
© 2024-2026 GitByBit.All rights reserved.