CTRL + `
on Linux, macOS, or Windows..git
directory. To do this, use the terminal to navigate to your project directory and list all of the contents:.git
directory that was created:index.html
.index.html
file listing to track the file by the repository.index.html
file.!
key followed by Tab
key. Go ahead and add something in the <body>
like a <h1>
heading and save it.index.html
file, such as a change to the content within the <h1>
tag. After doing so, you will notice a blue vertical mark in the gutter of the line that you changed. The vertical blue mark signifies that the corresponding line of code has been changed.<body>
section of your index.html
file. Notice now in the gutter that there is a red triangle. The red triangle signifies a line or group of lines that has been deleted.<body>
section, add a new line of code and notice the green bar. The vertical green bar signifies a line of code that has been added.index.html
file. You will be brought to a typical diff view with the current version of the file on the left and the previously committed version of the file on the right.master
or the name of the current working branch.test
.index.html
file that signifies you are in the new test
branch, such as adding the text this is the new test branch
.test
branch. Then, click the branch name in the bottom left again to switch back to the master
branch.master
branch, you’ll notice that the this is the new test branch
text committed to the test
branch is no longer present.