Adding and committing files to a local repository
Now that you’ve cloned your repository and switched to the correct branch, you can start building your one-page portfolio website. In this hands-on section, you will create a left-hand side menu, add a profile picture and some social icons, and style everything with CSS. You’ll want these changes to be recorded in your local Git repository.
Adding your new files to Git
For this hands-on section, we will add some HTML code to the index.html
file to replace the welcome text.
Use your favorite code editor to make changes in the index.html
file. You can use Visual Studio Code for this, a free code editor created by Microsoft. You can download it from https://code.visualstudio.com/download and install it locally. In Chapter 8, Helpful Tools and Git Commands, we will talk more about Visual Studio Code and its cool features.
Now, you can replace the content of the file with the following code: