From the course: Programming Foundations: Version Control with Git

Unlock the full course today

Join today to access over 24,400 courses taught by industry experts.

Solution: Putting it all together

Solution: Putting it all together

(upbeat music) - [Instructor] Now that you've had some time to work on the challenge, let's review the solution. Step one, create a local directory and initialize it. In terminal, I'll clear the screen again to start fresh. I'm still in my test project folder from the previous exercise, so I'll navigate back up to the main folder with the cd.. command. Then use the make directory mkdir command to create the personal-site folder. Then I'll move into the folder with the cd command. Using the git init command, I'll turn this into a Git repository. The output message confirms that the repository has been initialized. I can also see the new personal site folder, along with the .git directory inside the LinkedIn git-course folder in my binder. Now I'm ready for step two. Adding files to the local repository. I'll move the template files from the course exercise files into my new personal-site folder. In the command line, I've moved into this folder, but in the editor itself, I still have…

Contents