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 - Git Tutorial
From the course: Programming Foundations: Version Control with Git
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…
Practice while you learn with exercise files
Download the files the instructor uses to teach the course. Follow along and learn by watching, listening and practicing.
Contents
-
-
-
-
(Locked)
Using command line1m 17s
-
(Locked)
Command-line basics6m 3s
-
(Locked)
Configuring Git settings2m 46s
-
(Locked)
HTTPS vs. SSH4m 16s
-
(Locked)
Setting up a local repository4m 18s
-
(Locked)
Managing version history with Git add and commit2m 36s
-
(Locked)
Exercise: Creating project files4m 56s
-
(Locked)
Exercise: Git add and Git commit3m 47s
-
(Locked)
Creating a remote repository2m 13s
-
(Locked)
Syncing with git push and pull5m 50s
-
(Locked)
Deleting a repository3m 7s
-
(Locked)
Cloning a remote repo4m 26s
-
(Locked)
Challenge: Putting it all together1m 43s
-
(Locked)
Solution: Putting it all together6m 19s
-
(Locked)
-
-