3.3 Starting to Work with a Project

Now you have our repository in place, and you’re already tracking your first file. Next up you have to start dealing with changes.

The HTML is missing the <head> and <title> elements. Add them. Now your index.html file should look like this:

 
<html>
 
<head>
 
<title>Hello World in Git</title>
 
</head>
 
<body>
 
<h1>Hello World!</h1>
 
</body>
 
</html>

You know your file changed, and so does Git. The command git status shows you how Git sees your working tree, which is your current view of the repository. Subversion and CVS users will recognize this as their working copy.

 
​prompt> git status

Get Pragmatic Version Control Using Git now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.